Click here to Skip to main content
15,889,096 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

We are re-developing a site using zend framework, which uses SHA1 password encryption. The old site used OLD_PASSWORD() encryption. Now what's the best way to migrate the user data? Is there any hack for decrypting the OLD_PASSWORD as I guess, if we have to use the same encryption, then we have to develop the auth/login outside zend and it will take more development time.

any suggestion?

Thanks
Posted
Comments
AndyInUK 15-May-13 12:09pm    
Any clue guys??
onelopez 17-May-13 14:32pm    
Looks like HERE is the implementation of OLD_PASSWORD(). SHA1 hasshing is one-way hash, you cannot revert the hashed string to it's clear version. What you could do is use the OLD_PASSWORD implementation and then use SHA1 hashing to compare it with the stored value in the database.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900