This question already has an answer here:
- Is it possible to decrypt MD5 hashes? 24 answers
I have password stored in database and its showing on browser as md5 because its saved there as md5
below is the code am using
$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
Possible?
Please guide
Thanks
MD5 is a cryptographic hash function. The very point of these functions is that you cannot reverse them. That is: you cannot "decrypt" the password from the MD5 sum.
The way these are used for passwords is to hash the password that the user entered and compare that hash with the one you stored in your database. But MD5 is actually not well-suited for this, as you can easily get a password that produces the same hash using a rainbow table. At least add some salt.
md5 is a hash; you can't "undo" an md5 encryption
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.