Hi guys,
any good method to display md5 converted password ??
Thanks in advance
| SitePoint Sponsor |
Hi guys,
any good method to display md5 converted password ??
Thanks in advance
like that?PHP Code:<?php print md5('password'); ?>
NO!!!!!!!!Originally Posted by logic_earth
It's like that:
$pass = "12345";
$md5_pass = md5 ($pass);
echo($md5_pass); // prints 827ccb0eea8a706c4c34a16891f84e7b
I want this "827ccb0eea8a706c4c34a16891f84e7b" to be converted in original whioch is "12345".




It's a one-way algorithm, so there's no way to "decode" it back to normal. Bruteforcing and md5-hash databases are your only hope.Originally Posted by eanimator



Why would you want to convert from an md5 hash to the original string? Is it because you'd like build a function that would e-mail a user's password back to him if he forgot it?
I suppose you could use encryption instead, but perhaps a better way is to have your script make a new password and mail that to the user (as a temporary means of logging in) and advise the user to change it ASAP.
Zealotry is contingent upon 100 posts and addiction 200?
yes. That's was wobbling in my mind too..
Bookmarks