me1000 Posted January 20, 2008 Share Posted January 20, 2008 so, I am trying to run a MD5() function on a string, however it seems the be encrypting the variable rather than the variable value. for example... $userpass = "abcdefg"; md5($userpass); md5(abcdefg); shouldnt the code above return the same value? it doesnt though... I was able to figure out that the encryption is being preformed on the variable name itself ($userpass), not the variable value (abcdefg). can someone explain what Im doing wrong? Thanks, Link to comment https://forums.phpfreaks.com/topic/86876-solved-md5-encryption-problem/ Share on other sites More sharing options...
Northern Flame Posted January 20, 2008 Share Posted January 20, 2008 well u need quotes on the second one md5('abcdefg'); Link to comment https://forums.phpfreaks.com/topic/86876-solved-md5-encryption-problem/#findComment-444141 Share on other sites More sharing options...
me1000 Posted January 20, 2008 Author Share Posted January 20, 2008 so here was the problem, apparently "$_REQUEST['pass']" doesnt work, you must say $var=$_REQUEST['pass']; and then encrypt the variable. Link to comment https://forums.phpfreaks.com/topic/86876-solved-md5-encryption-problem/#findComment-444145 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.