I need to migrate password from magento to opencart 2. I don't know exactly which version magento, I think it's v1.
In opencart, the class responsible for the encryption is: AccountCustomer, and is stored in this file: catalog/model/account/customer.php. The insert method:
class ModelAccountCustomer extends Model {
public function addCustomer($data) {
password = $this->db->escape(sha1($salt . sha1($salt . sha1($data['password']))))
In opencart database the password is stored in this format (sha1 with salt):
password=8f4a5752c2f91635ca8a3d6315cca1118e90f9ec
salt=Vln87Qkn3
In magento database the password_hash is stored with this syntax. I think the salt is after : In that case salt is: b0. The encryption algorithm maybe is md5, but I'm not sure.
password_hash = f1be538db8101e05def544c03357d958:b0
Any help is welcome!