在客户信息Magento的密码哈希 [英] Magento password hash in Customer info

查看:355
本文介绍了在客户信息Magento的密码哈希的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

喜逢身体我尝试检查Magento的商店用户的密码,我从用户和Magento的密码,并尝试对它们进行比较,其中之一就是哈希code等是正常的字符串,我要生成散列与正常的相比他们,但问题是Magento的哈希密码是不同的!
这是密码:123456
这是哈希,我从Magento的获取:2364b70e91268d8ecf59fffd47db692b:LSC2VzugdDdUbghTHoTouZeMLxk14OPT
这是MD5哈希我产生123456:e10adc3949ba59abbe56e057f20f883e

Hi every body i try to check passwords of users of magento store , i get password from user and magento and try to compare them , one of them is hash code and other is normal string , i want to generate hash of normal one and compare them but problem is magento hashed password is different ! this is password : 123456 and this is hash that i get from magento : 2364b70e91268d8ecf59fffd47db692b:LSC2VzugdDdUbghTHoTouZeMLxk14OPT and this is md5 hash i generate for 123456 : e10adc3949ba59abbe56e057f20f883e

什么是Magento的密码哈希格式?
任何机构可以帮助我吗?
谢谢

what is the magento password hashing format ? can any body help me ? thanks

推荐答案

这就是所谓的盐渍密码哈希。结果
拆你有你的分贝值:。第一部分的盐腌散列,所述第二部分是盐。结果,
在Magento它的工作原理是这样的:

This is called a salted password hash.
Split the value you have in your db at :. The first part is the salted hash, the second part is the "salt".
In Magento it works like this:

$saltedHash = md5($salt.$password);

在您的情况下,盐是 LSC2VzugdDdUbghTHoTouZeMLxk14OPT 。结果
如果您尝试的MD5('LSC2VzugdDdUbghTHoTouZeMLxk14OPT123456') 2364b70e91268d8ecf59fffd47db692b 。结果
正是你需要的。

In your case the salt is LSC2VzugdDdUbghTHoTouZeMLxk14OPT.
If you try md5('LSC2VzugdDdUbghTHoTouZeMLxk14OPT123456') you get 2364b70e91268d8ecf59fffd47db692b.
Exactly what you need.

这篇关于在客户信息Magento的密码哈希的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆