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 Quote 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. Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.