Jump to content

MD5 help


R1der

Recommended Posts

ok i got a forgot password page what it does is thay type in there username and then it emails them there password.

but the password is md5 in the database can you help me make it so it send them there password decrypted?

[code$body = "Hello {$b['username']}! Your password for www.********.com is {$b['userpass']}. If you have any other problems please mail *****@********.com";
[/code

This si the part that needs help this part of the code is the body of the email you get with there password in it

Thx
Link to comment
Share on other sites

the only suggestion i have for you is to email them a new set of password, that would be the easiest way, or else you would have to change your password encrypt system, to something like rot13 or something...
Ted

btw, if you want a random pass. generate script, i have one...
Link to comment
Share on other sites

that does seem to be the easiest way of doing it... us a randomkeygen like...

[code]
function randomkeys($length){
$pattern = "1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
for($i=0;$i<$length;$i++) $key .= $pattern{rand(0,62)};
return $key;
}
[/code]

set that generated key to the database, and email it to them, and allow them to change it on the page...
Link to comment
Share on other sites

[quote author=ToonMariner link=topic=121929.msg502193#msg502193 date=1168520577]
there never will be a decryption of md5 - if there is then md5 will no longer be an acceptable encryption algoritm.

What R1er is looking for is the two encrytpion offered by the mcrypt library
[/quote]

You could write a massive scriptto pass the MD5 through a program like Cain & Abel ... but i wouldnt bother tbh
Link to comment
Share on other sites

There are several free standing programs that can crack MD5 and SHA 1 .. Cain and abel is one, The other is jack the ripper or something like that.

Whilst incorporating these programs into a php script is not really feasable... the simple fact that these programs contain algorithms capable of cracking md5 hash's means that it should at least be theoretically possible to do what your asking.

That said I wouldnt like to try it myself.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.