prestashop:试图去code密码 [英] Prestashop: trying to decode password
本文介绍了prestashop:试图去code密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我发展为prestashop在Asp.NET后端。我有一个小问题:不能去code密码!
在这里,code
i'm developing a backend in Asp.NET for Prestashop. I've a small problem: can't decode password ! Here the code
cmd.CommandText = "SELECT * FROM ps_employee WHERE email=@email AND passwd=MD5(@pwd) AND active=1"
正如你所看到的,我使用MYSQL MD5函数,但...它不会工作。密码是正确的,我敢肯定...
As you can see, i'm using MYSQL MD5 function, but ... it not work.. Password is correct, i'm sure...
推荐答案
,密码哈希盐腌 ,prestashop似乎使用值 _COOKIE_KEY_ 在设置.inc.php
这一点。
The password hash is salted, prestashop seems to be using the value _COOKIE_KEY_ in settings.inc.php
for this.
您必须查找此值,并计算它的MD5哈希值,然后连接起来的密码: MD5(@ COOKIE_KEY @ PWD)
You will have to look up this value and compute the md5 hash of it and the password concatenated: md5(@COOKIE_KEY.@pwd)
这篇关于prestashop:试图去code密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文