Checking for md5 or password_hash | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

Checking for md5 or password_hash

Hi folks, I have a site that is using old MD5 passwords, but Iā€™m re doing the join form which will store new joiners with the upto date hashing. BUT I need to edit the log in code, so that if user on old use old MD5 verify, but if new use new verifi. My thouhts were to use the string length funtion, as the md5 is different to the new hash default. But Iā€™m just canā€™t get it to work. Iā€™m using an if else statment, to check, then run. Any help please?

21st Jul 2019, 12:30 PM
Dave Elliott
Dave Elliott - avatar
0 Resposta