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
Solved

What does this period mean in PHP?

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Change background color in td if any value is 1 9 23
How to display div value on input field value in php 11 51
mysql query for sum() 3 27
if (is_singular not working 5 18
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…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
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.

791 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