Solved

What does this period mean in PHP?

Posted on 2014-02-16
4
494 Views
Last Modified: 2014-02-16
I am trying to convert something to coldfusion from php.  what does the period mean in this statement?

$hash = md5( md5( $salt ) . md5( $password ) );
0
Comment
Question by:theideabulb
  • 2
4 Comments
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 total points
ID: 39863196
the "." is a string concatenation, so the 2 md5 are put together, and the md5 again on the whole string.
0
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 39863198
0
 
LVL 52

Expert Comment

by:Scott Fell, EE MVE
ID: 39863203
concatenation.  It is creating a hash of two variables.

if $salt = "something" and  $password="MyPass what is happening is the hash of combining a hash of "something" and hash of "MyPass.    If it was just md5( $salt . $password  ); then it would be just like md5("somethingMyPass")
0
 

Author Closing Comment

by:theideabulb
ID: 39863205
Thank you
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

943 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now