S
S
Sergey Melnikov2015-10-09 18:56:34
Yii
Sergey Melnikov, 2015-10-09 18:56:34

How to get password from passwordhash field?

Greetings.
Tell me what function to get the password from the table?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivanq, 2015-10-09
@azazel_live

Unfortunately not. The hash, as a rule, cannot be decoded. When checking the correctness of the entered password, a hash of the entered password is generated and the hashes are compared. Security is based on this - after receiving the table, you cannot enter.

A
Alexander Zonov, 2015-10-09
@amazonov

You can try another option here. If you know exactly how passwords were hashed in the old database (algorithm, presence of a salt), then you can not change anything, but implement double hashing. First, check the password with the old algorithm, and then hash the resulting hash with a new one and check with the new hashes in the database, which you can overtake there with the algorithm you need. In principle, this will avoid the hassle of changing passwords.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question