AbydosGater Posted October 9, 2006 Share Posted October 9, 2006 Hey, i was just wondering for my users table in my database when i go into phpmyadmin and set the structure for the password field to password, it encrypts all the passwords in the table,But what method of decryption do i use for the script that needs the password? md5, base_64??Thanks Link to comment https://forums.phpfreaks.com/topic/23425-database-password-structure-in-phpmyadmin/ Share on other sites More sharing options...
.josh Posted October 9, 2006 Share Posted October 9, 2006 you would refer to it in your query as for example:[code]$user = 'someuser';$pass = 'somepassword';$sql = "select * from table where user='$user' and pass = password('$pass')";[/code]and there is no way to 'decrypt' it and show it as normal lettering. Link to comment https://forums.phpfreaks.com/topic/23425-database-password-structure-in-phpmyadmin/#findComment-106235 Share on other sites More sharing options...
AbydosGater Posted October 9, 2006 Author Share Posted October 9, 2006 Oh ok! Thanks Link to comment https://forums.phpfreaks.com/topic/23425-database-password-structure-in-phpmyadmin/#findComment-106236 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.