otuatail Posted September 12, 2008 Share Posted September 12, 2008 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 More sharing options...
otuatail Posted September 12, 2008 Author Share Posted September 12, 2008 Sorry worked it out. Spent the last few months with something called c# It is just adding to strings together first. What an idiot. Link to comment https://forums.phpfreaks.com/topic/123928-solved-md5-query/#findComment-639722 Share on other sites More sharing options...
Mchl Posted September 12, 2008 Share Posted September 12, 2008 It's concatenation operator. It appends right string after the left one. So if $pass is "foo" and $salt is "blabla" then $pass.$salt = "fooblabla"; Not a class at all (although you can have classes and objects and all that in PHP) Link to comment https://forums.phpfreaks.com/topic/123928-solved-md5-query/#findComment-639724 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.