jonathanwiesel
jonathanwiesel

Reputation: 1034

Magento get unsalted md5 password

I'm trying to migrate the data in magento to another database in which I store the passwords with a normal md5 hash, the problem when exporting the password in Magento is that using

$passHash = $user->getPasswordHash();

Returns the password with salted md5 encryption.

Is there a way to obtain the unsalted md5 hash?

Upvotes: 0

Views: 1204

Answers (1)

hesselbom
hesselbom

Reputation: 3538

No, you'll never be able to reverse the hash. There is a theoretical possibility using some kind of md5 reversing rainbow table (http://en.wikipedia.org/wiki/Rainbow_table) but not really a stable way to do it.

Maybe an option could be if in the new system you could use the same salt as in Magento, or maybe ask your customers to enter a new password?

Upvotes: 2

Related Questions