Solved

What does this period mean in PHP?

Posted on 2014-02-16
4
523 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 143

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 143

Expert Comment

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

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
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.

630 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