weknowtheworld Posted January 7, 2007 Share Posted January 7, 2007 Hi, Can anybody explain me how to encrypt password in PHP and store in Mysql.Thanks.. :) Link to comment https://forums.phpfreaks.com/topic/33199-encrypt-password-in-php/ Share on other sites More sharing options...
trq Posted January 7, 2007 Share Posted January 7, 2007 Take a look at the [url=http://php.net/md5]md5[/url] function. Then you would simply use a query something like....[code=php:0]$sql = "INSERT INTO tbl (uname,upass) VALUES ('foo','".md5('bar')."');";[/code] Link to comment https://forums.phpfreaks.com/topic/33199-encrypt-password-in-php/#findComment-154983 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.