Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

How do I into md5?

Name: Anonymous 2011-02-24 13:58

Question: how exactly are 4chan's pictures hashed?

I figured it's md5 since in clearly says so in the motherfucking tag, but if I try to actually hash a picture with md5 I always get a different code.
Now, I admit it, I don't know shit about hashing.

So then I tried comparing the results to see some pattern
what 4chan had: 4XgNLCurJpsOWCRH/Vlicg==
what I got: e1780d2c2bab269b0e582447fd596272

It looks like 4chan does some additional shit to the hash string, but I have no clues as to what exactly it does.
Hell, it's 22 characters against 32. How the fuck am I even supposed to deal with that.

So... help? I'm out of ideas to be honest.

Name: VIPPER 2011-02-24 14:09

4chan
We dont care.

Name: Anonymous 2011-02-24 14:09

Nobody seems to care, but nonetheless:
By skimming through Yotsuba sources I figured it's base64.
Fine, I now get ZTE3ODBkMmMyYmFiMjY5YjBlNTgyNDQ3ZmQ1OTYyNzI=
which is considerably closer but still not quite there.

Name: Anonymous 2011-02-24 14:11

>>2
Ok, use your imagination for a second and pretend it's not there.
What kind of encoding turns a 32 character hex string into something that's 22 characters long, has numbers, letters and some other characters, is case sensitive and ends with a == ?

Name: Anonymous 2011-02-24 14:29

Is it base 85?

Name: Anonymous 2011-02-24 14:45

>>3
Now run it through base64 again. Problem solved.

Name: Anonymous 2011-02-24 15:07

If it ends with '=' it's almost always base64.

Name: Anonymous 2011-02-24 15:36

>>5
<~AMH,'0OuqK11F[$1,_.%0P*+$1,LgHAn3bZ2DR3H~>

>>6
WlRFM09EQmtNbU15WW1GaU1qWTVZakJsTlRneU5EUTNabVExT1RZeU56ST0=



Anyhow, I wrote my own base64 decoding method, according to... well... wikipedia... and it suddenly works.
Apparently the one I had was corrupt?
Oh well, thank you for your attention.

Name: Anonymous 2011-02-24 16:19

>>1
┌[hax@myanus] [~]
└─> echo 4XgNLCurJpsOWCRH/Vlicg== | base64 -d | hexdump -ve'/1 "%02x"'; echo
e1780d2c2bab269b0e582447fd596272
┌[hax@myanus] [~]
└─>

Name: Anonymous 2011-02-24 17:01

Why are they still using MD5? I remember md5coll could generate collisions in a few seconds on average PC hardware 5 years ago.

Name: Anonymous 2011-02-24 17:34

>>10
So what? The hash is solely used for checking duplicate images on the server.

This thread sucks. I hate you all.

Name: Anonymous 2011-02-24 18:36

>>11
Enjoy your Collisions, Patrick.

Name: Anonymous 2011-02-24 19:45

>>1
How did you even find /prog/ if you're so retarded?

>>10
How feasible would it be to make a valid image that would collide with a specific hash?

Name: Anonymous 2011-02-24 19:48

>>13
How feasible would it be to make a valid image that would collide with a specific hash?

And what would the purpose be?  So that you could not post an image that is different to the first!

Name: Anonymous 2011-02-24 20:09

>>14
I have my reasons.

Name: Anonymous 2011-02-24 20:13

Use sha256, or md6...

Name: Anonymous 2011-02-26 0:14

>>1
/facepalm

Its a base64 representation of the md5 has instead of in hex... if you undid the base64 you'd see its the same hex

Don't change these.
Name: Email:
Entire Thread Thread List