simcoweb Posted July 4, 2007 Share Posted July 4, 2007 I'm looking to encrypt a password entry from a form and insert into MySQL. Here's what i'm attempting to use: $password = mysql_real_escape_string(md5($_POST['password1'])); Link to comment https://forums.phpfreaks.com/topic/58344-can-i-encrypt-a-password-this-way/ Share on other sites More sharing options...
teng84 Posted July 4, 2007 Share Posted July 4, 2007 yes Link to comment https://forums.phpfreaks.com/topic/58344-can-i-encrypt-a-password-this-way/#findComment-289290 Share on other sites More sharing options...
Azu Posted July 4, 2007 Share Posted July 4, 2007 Note that this is hashing not encrypting. It will be impossible to retrieve the password, except maybe with a cracking tool like a rainbow table. Link to comment https://forums.phpfreaks.com/topic/58344-can-i-encrypt-a-password-this-way/#findComment-289449 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.