我有一个脚本及其存储用户密码在加密时用户注册他们的帐户,当我向管理员面板显示用户所有信息时,密码显示加密密码但我想在我的管理面板中显示此密码,因为下面的MD5是登记表格代码
if ($input->p['a'] == "submit") {
verifyajax();
$username = $input->pc['username'];
$password = $input->pc['password'];
$password2 = $input->pc['password2'];
$fullname = $input->pc['fullname'];
$email = $input->pc['email'];
$email2 = $input->pc['email2'];
$inputs = array("username" => $username, "password" => $password, "fullname" => $fullname, "email" => $email, "email2" => $email2);
$newdata = array("type" => $membership_bonus, "upgrade_ends" => $membership_expires, "money" => $account_balance, "purchase_balance" => $purchase_balance, "fullname" => $fullname, "comes_from" => $_SESSION['comes_from'], "username" => $username, "password" => md5($password), "email" => $email, "ref1" => $referrer, "signup" => $signupdate, "country" => $country, "computer_id" => $computerid, "signup_ip" => $_SERVER['REMOTE_ADDR'], "gateways" => $usrgateway, "umobile" => $umobile);
在管理员面板中,当我显示用户密码时,我使用下面的代码但显示加密密码。
<tr>
<td>Password:</td>
<td><input name=\"email\" type=\"text\" value=\"";
echo $member['password'];
echo "\" /></td>
</tr>
我需要做什么才能在我的ADMIN PANEL中显示MD5密码。
答案 0 :(得分:0)
你想解密md5哈希吗?我的意思是你想显示你的原始密码吗?如果是,答案是md5无法解密:(
答案 1 :(得分:0)
md5是一种单向散列,因此无法逆转