DeHashing Passwords

I have a website that I am making an Admin section for and the database is Hashing the Username and Password and I am not sure the type of Hash. What I need to do is have them log into their account and the login script needs to verify them and create a session. The examples are below

PHrxHHLqdrJv5o+hxLm80AA=
m7bNePKfzXMA

Please Help

It’s not the database hasing the information.
If the first one is the username it is sha1 but I have no idea what the other one is.

Also: it is not possible to unhash/dehash anything. What you do is compare the hashed value of the input with the database value which is already hashed.

I went out to Google and tried a HASH Decrypter and it said not a valid HASH.
So how would I make the login form HASH the password field and compare it to the Database and set a session for the other pages. This is in MSSQL and PHP5.
I have been trying to find some good Google Articles for over a week on this and no luck.

Hi there,

You can use the sha1() function to encrypt your pqsswords and send them to you database. The great thing about sha1() is that it can’t be reversed and no matter how many times you use the function on a single word, the hash will be the same. To test a password, use the sha1() function on the user’s input and compare it to the hash string in your database for the same word.

Hope this helps.

When I put the password in the hash generator http://www.tools4noobs.com/online_php_functions/sha1/
I get dc76e9f0c0006e8f919e0c515c66dbba3982f785 not the one above in the previous posts.

just use the sha1 php function:

sha1($string) - will change it to the hash. Obviously you need to make sure the password you enter as $string has to be the password which will hash into the hash.

Sponsor our Newsletter | Privacy Policy | Terms of Service