Jump to content

[SOLVED] md5 query


otuatail

Recommended Posts

Hi I have been using md5() for password encription and noticed something here that looked odd.

 

I am happy with $x = md5("mypassword");

but this . . . .

 

f

unction hash_pass($pass){
   $salt="blabla"; //must be the same as all your other files
   return md5($pass.$salt);
}
$user = "username";
$pass = "pasword";
$pass = hash_pass($pass);

 

Not shure what the full stop in the middle does.  $pass.$salt

 

Looks to me loke a class but this is PHP right?

 

Desmond.

 

Link to comment
https://forums.phpfreaks.com/topic/123928-solved-md5-query/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.