Solved

What does this period mean in PHP?

Posted on 2014-02-16
4
486 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Both Easy and Powerful How easy is PHP? http://lmgtfy.com?q=how+easy+is+php (http://lmgtfy.com?q=how+easy+is+php)  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

706 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

18 Experts available now in Live!

Get 1:1 Help Now