Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

What does this period mean in PHP?

Posted on 2014-02-16
4
Medium Priority
?
548 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 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 2000 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 143

Expert Comment

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

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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
This article discusses how to implement server side field validation and display customized error messages to the client.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to count occurrences of each item in an array.
Suggested Courses

972 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