md5中的密码解密为英语(PHP MYSQL) [英] Password in md5 decrypted to English (PHP MYSQL)

查看:193
本文介绍了md5中的密码解密为英语(PHP MYSQL)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将密码存储在数据库中,并在浏览器中将其显示为md5,因为该密码已保存为md5

I have password stored in database and its showing on browser as md5 because its saved there as md5

下面的代码正在使用

$result=$link->query("select * from adminpanel");

echo "<tr><th>User Name</th><th>Password</th></tr>";

// loop through results of database query, displaying them in the table

while($row =mysqli_fetch_array($result,MYSQLI_ASSOC)) {
// foreach( $result as $row ) { 



// echo out the contents of each row into a table

echo "<tr>";

echo '<td>' . $row['username'] . '</td>';

echo '<td>' . $row['password'] . '</td>';

它在表格中显示每个用户的用户名和密码,但我想用英语显示密码.解密值

It is showing me user name and password in a table against each user but password I want to show in ENGLISH. Decrypted value

可能吗?

请指导

谢谢

推荐答案

散列是一种单向操作,意味着无法解密. 根本就无法解密MD5加密值.如果您需要,则可以使用任何其他双向操作来输入密码.

Hashing is a one-way operation, meaning it cannot be decrypted. Simply you can not decrypt the MD5 encrypted value. If in your case you need it then you can use any other two-way operation for password.

这篇关于md5中的密码解密为英语(PHP MYSQL)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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