How to reverse hashed and salted password ?

22.3k Views Asked by At

I am using vBulletin and the login uses this to cross-refer to the database.

md5(md5($pass).$salt)

How do i make a PHP script such that every password input will automatically be hashed and salted as well so that it is able to authenticate with the vBulletin database ?

3

There are 3 best solutions below

4
On

Just use the code you posted. Get the form data and wrap it in the appropriate md5() function.

2
On

How to reverse hashed and salted password ?

Hashing is a one-way process. i.e. If you pass a string you get a hash which cannot be reversed., It can be used for comparison purposes.

Some of the hashing algorithms are md5()[not considered secure] , sha-1, sha-256

Best Hashing as of now...

Make use of crypt() coupled with some strong salt. If you have PHP 5.5 , then you can very well make use of password_hash()

0
On

Because hashing is not encrypting, hashes can't be reversed.

If you want to be able to reverse passwords, you have to use an encryption function.