Md5()

Started on the old forum in June 2007 · view the original in the archive · old links redirect here

21 replies · 1,587 views · started 19 years ago · 1 min read

2 participants
XXX #1

I love my site yes i do.... but i hate using these long url's when scripting..so somebody told me i can use the mdhash..but im realy not sure how it is implemented.....cuz for eg..if the link is sumn like

http://kasi.wen.ru?ses=9494949449

how do i retrieve the data in the link because inside that link theres sumn like this

$time=time();
$id=$user;
$add=$id.$time;
$ses=md5($add);

now how do i get my data n ish? lol...in the page that ive posted it i couldve just said sumn like

$user=unmd5thethang['ses'];

lol..can anybody understand me?

XXX #2
$tm = time();
      $xtm = $tm + (getsxtm()*60);
      $did = $uid.$tm;
      $res = mysql_query("INSERT INTO ibwf_ses SET id='".md5($did)."', uid='".getuid_nick($uid)."',

i just noticed that iris blaze/wizard uses the database for this function...hmm..lol..if only i knew it was so simple..lol..

wizard Senior · 493 posts #3
$tm = time();
      $xtm = $tm + (getsxtm()*60);
      $did = $uid.$tm;
      $res = mysql_query("INSERT INTO ibwf_ses SET id='".md5($did)."', uid='".getuid_nick($uid)."',

i just noticed that iris blaze/wizard uses the database for this function...hmm..lol..if only i knew it was so simple..lol..

lol yes its pretty easy. so are you going to use it?

XXX #4

im thinkin of it..but i dont see the difference...il implement it after i get my mail system working.

FlareX #5

HUH????

FlareX #7

In Lavalair The Passwords Are Encrypted In MD5 Format , But There Are Tools To Decrypt Them

Guest #8

now how do i get my data n ish? lol...in the page that ive posted it i couldve just said sumn like

$user=unmd5thethang['ses'];

lol..can anybody understand me?

md5 is a one way thing .. you cannot reverse it -- ie, it is NOT encyption/decryption

In Lavalair The Passwords Are Encrypted In MD5 Format , But There Are Tools To Decrypt Them

MD5 strings cannot be decrypted. End of.

The way that your 'tools' to decrypt md5 strings is by gathering a HUGE database of words/character sequences, store their md5 values, and then allow you to search for one that matches..

does that make sense?


http://md5-hash-online.waraxe.us/

It is now known how to, with a few hours' work, generate an MD5 collision. That is, to generate two byte strings with the same hash. Since there are a finite number of MD5 outputs (2128)**, but an infinite number of possible inputs, it has long been known that such collisions must exist, but it had been previously believed to be impractically difficult to find one. The result is that the MD5 hash of some information no longer uniquely identifies it. If I present you with information such as a public key, its MD5 hash might not uniquely identify it; I may have a second public key with the same MD5 hash.

which means that you may find another input that has the same md5 hash (or a list of possible decryptions), but not the true, original, input. EDIT: that is 2 to the power of 128 .. the best calcuator i could find gave me this as an output : 3.402823669209385e+38 ...................... A BIG NUMBER!!

does it make sense now?

Guest #9

i really don't understand what you really want, but you can't decrypt the md5 hashes, it's one way encryption function, and not only me uses this as a function to store passwords and sensitive data, it also used in phpbb, joomla, and almost every other php application in the world, there's others hashes in php like sha1, which is more secure but the problem why programmers can't use this, that they already have projects, for example i can't use this for lavalair.net because md5 can't be reversed thus if i wanna use sha1 all the passwords data will be lost.

so you can't pass values by using md5, if you want to pass encrypted data it'll be useless or you'll have to make your own encryption/decryption function and believe me it wont do what you want.

FlareX #10

But I Decrypt Passwords From The Lavalair Database And The Passwords Are In MD5 Format

amylee Principal · 1,092 posts #11

thats by using rainbow tables by brute force and that doesnt allways work wouldnt i used to do that on a regular basis via http://milw0rm.com

FlareX #12

Remove The Link O We Start Getting Hacking Probs Etc

Guest #15

i can't use this for lavalair.net because md5 can't be reversed thus if i wanna use sha1 all the passwords data will be lost.

so are you saying that the only reason sha1 isnt used in your script is because nobody would be able to login (you dont have the sha1 equivalent of their password) so their usernames would be lost? lol thats not much of an excuse ... that would be fairly easy to do -- i mean, just use the this process in the login.php file and it should work okay .. leave it in for a month or two and the users who have logged in get their password security .. if someone doesnt login during that time, they deserve to have their account deleted External image (may be gone) (or you could leave it in permanently lol)

|--| check if username exists, if true[username exists], check if pass (after sha1 encryption) exists in the database, 
|--| --| if true[sha1 pass is present], continue login normally
|--| --| elseif [sha1 pass is not present], check if the md5 encrypted password exists and continue login normally, either silently updating the db or ask the user to re-input their password telling them that it is to improve security etc further details can be found at blah blah ..
|--| --| else[neither password is present with any encryption type], it is an incorrect password 
|--| else[the username doesn't exist], the username does not exist and the appropriate error message(s) can be dispayed

now, im off to go research sha1 and include it in my rewrite of the lavalair script hehe External image (may be gone)

FlareX #17

Gud Point Kwah

Guest #18

Gud Point Kwah

since some of my posts just got 'cleaned' and all of them had different points on, any chance that you could tell me what you think was a 'good point' ?

edit: sorry i overestimated a bit on the number of posts that got 'cleaned'..

FlareX #19

i can't use this for lavalair.net because md5 can't be reversed thus if i wanna use sha1 all the passwords data will be lost.

so are you saying that the only reason sha1 isnt used in your script is because nobody would be able to login (you dont have the sha1 equivalent of their password) so their usernames would be lost? lol thats not much of an excuse ... that would be fairly easy to do -- i mean, just use the this process in the login.php file and it should work okay .. leave it in for a month or two and the users who have logged in get their password security .. if someone doesnt login during that time, they deserve to have their account deleted blum.gif (or you could leave it in permanently lol)

CODE |--| check if username exists, if true[username exists], check if pass (after sha1 encryption) exists in the database, |--| --| if true[sha1 pass is present], continue login normally |--| --| elseif [sha1 pass is not present], check if the md5 encrypted password exists and continue login normally, either silently updating the db or ask the user to re-input their password telling them that it is to improve security etc further details can be found at blah blah .. |--| --| else[neither password is present with any encryption type], it is an incorrect password |--| else[the username doesn't exist], the username does not exist and the appropriate error message(s) can be dispayed

Guest #20

ooh okay External image (may be gone) glad somebody agrees that this is a good post ..

and as a reply to one of amylee's posts that got deleted, sha1 is no longer used by government agencies and there are newer algorithms available -- sha2

taken from http://www.php.net/sha1

Gregory Boshoff 18-Oct-2006 04:23

Note that the sha1 algorithm has been compromised and is no longer being used by government agencies.

As of PHP 5.1.2 a new set of hashing functions are available.

http://www.php.net/manual/en/function.hash.php ............. It is recommended that developers start to future proof their applications by using the stronger sha-2, hashing methods such as sha256, sha384, sha512 or better.

Sign in to reply.

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close