我想向您寻求帮助。我正在尝试在php中编写脚本来登录网站。对于进一步的请求,pwd作为哈希字符串。
如下面的python脚本所示,这种方式保护了密码。
我在插件中找到有效的python:
password = hashlib.sha1(md5crypt(self.password, salt)).hexdigest()
我想在php中使用它。我尝试了此脚本,但是字符串不正确
另一种方式:
我不是在看网站的API。这用于登录
username_or_email={The username or email address of the user.}&password={The user's password digest SHA1(MD5_CRYPT(password)).}&keep_logged_in={Tells whether to keep the user authenticated for a longer period of time (0 -> No, 1 -> Yes).}
更有用吗?
我尝试过此脚本
<?php
sha1(md5(crypt($password,$salt)));
?>
和此
<?php
sha1(md5(crypt($password));
?>
和此
<?php
sha1(md5(crypt($password));
?>
我有点在这里用完我的选项