Piorun Posted September 8, 2013 Posted September 8, 2013 Hi guys Im creating register/login script but i need to code/decode password. Im using sha256() function and im putting this into MySQL. How to decode that password or what type of column coding should i set (now i have utf_general_ci)?
ixjf Posted September 8, 2013 Posted September 8, 2013 Hashed passwords aren't meant to be "de-hashed". You need to hash the password written by the client and compare it to the one in the database.
Piorun Posted September 8, 2013 Author Posted September 8, 2013 Mhm ok but when i hash string (for ex. from guiGetText) im taking different than original. That's why im asking about MySQL column and coding this.
Piorun Posted September 8, 2013 Author Posted September 8, 2013 Ok nevermind . I code 4 times using sha256 but its not what i wanted to so i had an "error" in code and its now fine. Bye .
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now