Magento 1.9 – How to Convert String Password to Hash

customerimportmagento-1.9password

I am trying to import customers using .csv file. I did it using data flow profiles in magento. I have list of customers and passwords but I have passwords in string format. How to convert string password into password_hash?

Best Answer

First you need to convert all the password to hash password. then on the sheet use password_hash instead of password for set password.

Use magento core helper class for generate hash_password:

Mage::helper('core')
->getHash('YOUR_PASSWORD', Mage_Admin_Model_User::HASH_SALT_LENGTH);
Related Topic