'Check password for correctness with php crypt
I have this password in the database:
$pbkdf2-sha256$25000$dsvza5WnPh0eldHhp59PiQ$1YUkXJIl6Ek5keGRauKIPmNiIQZEbqA.nD.bJrhtul0
plaintext password is: testtest
How can I check if the password is correct?
in the past i could do this with:
crypt('testtest', '$pbkdf2-sha256$25000$dsvza5WnPh0eldHhp59PiQ$1YUkXJIl6Ek5keGRauKIPmNiIQZEbqA.nD.bJrhtul0');
but this does not work after a server move, does somebody has any idea?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|