Jump to content

How to import client passwords in MD5


Recommended Posts

I am not sure if that is possible.

Prestashop uses MD5 to store passwords, but it also uses special key so the rough formula for passwords is MD5(salt+password). If magento uses different formula there is no way to make passwords work. If Magento uses exactly the same formula there is still the issue of 'salt' part. 

 

So the best you can do is to ask users to click forgot password after migration. 

Link to comment
Share on other sites

apparently Magento also uses a salt:password, but the salt is going to be different than what Prestashop uses.

 

So you could use a service that advertises migration services from magento to prestashop, and they claim they have a way to migrate the password.

http://litextension.com/prestashop-migration-tool/magento-to-prestashop.html

 

However I suspect it includes a plugin, which does something like this

1) You take the password value from magento and store it in prestashop without any modification to the value.

2) On Prestashop, you would install an override of the AuthController.  The override would include a condition that would try the magento password algorithm first, and compare it to the stored md5 value. 

If its a match, then convert the value using the normal prestashop algorithm, store that in the database, and then allow the logon to proceed. 

If it was not a match, then just try the standard prestashop password algorithm (perhaps this customer already logged in, or perhaps they are a new customer).

If neither match, then fail the logon attempt

 

Eventually all passwords get converted to prestashop algorithm, depending if all customer's logon. 

 

You could even remove this override after a certain period of time, and then force password resets for all customers that did not logon. 

  • Thanks 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...