Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 550
  • Last Modified:

What does this period mean in PHP?

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
theideabulb
Asked:
theideabulb
  • 2
1 Solution
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
the "." is a string concatenation, so the 2 md5 are put together, and the md5 again on the whole string.
0
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
0
 
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
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
 
theideabulbAuthor Commented:
Thank you
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now