Is it possible to rewrite encryption from MD5 to PHPass without losing data?

580 views Asked by At

I've inherited a migration project. The legacy database has PHPass encryption and the new database is MD5. Is it possible to "upgrade" from MD5 to PHPass and keep data integrity?

1

There are 1 answers

3
user229044 On

No. The whole point of hashes is that they are not reversible.

To "port" or "upgrade" a hash from MD5 to PHPass (or vice versa) you would need to reverse the MD5 hashing in order to pass the unhashed password into PHPass, which is impossible.