r/ProgrammerHumor • • Jul 12 '17

Hacker free! (Not OC)

Post image
5.1k Upvotes

144 comments sorted by

View all comments

35

u/lllama Jul 13 '17

This reminds me of a website my colleagues used to use to do MD5 encryption.

Then one day they used another similar styled website to successfully decrypt an MD5 hash.

29

u/LinAGKar Jul 13 '17

You can't encrypt things with MD5, it's a hashing algorithm. You certainly can't "decrypt" one.

27

u/deathforpresident Jul 13 '17

Nah but MD5 is so common that there are sites that, if you enter an MD5 string it will have translated that string to MD5 before, so it knows the original text. So it can translate it back to the initial string.

12

u/get_tech Jul 13 '17

Not the original text, but a text that generates the same hash. There are collisions. But these are working fine if the logins are only using the MD5 hash.

2

u/[deleted] Jul 14 '17

They use rainbow tables, not previously entered strings. Rainbow tables are the reason why you should salt your hashes.

8

u/[deleted] Jul 13 '17

Hes probably referencing a website that caches hashes. And his friends were trying to retrieve a password from its hash

-8

u/lllama Jul 13 '17

Any MD5 hash will have a limitless combinations of bytes leading to the same hash, but for something like a password there will only be limited logical combinations of characters that would form a password that a human would remember.

Finding these combinations is colloquially referred to as "decrypting".

Likewise for storing a hash of a password, and calling this encrypting.

If you don't believe me, Google combinations of these words and see them occur just like that (in fora, technical manuals, tech publications, etc). If you still want to tell people this is incorrect, you did me, so 1 down >500.000 more to go!

20

u/RIP_CORD Jul 13 '17

Um. I'm a developer. I've defenitly never heard any other developers refer to hashing as encryption, they're two different concepts. And it's called cracking when you reverse it. Encryption requires a key, that is used to encrypt it and can be used to decrypt it. Hashing has no such feature, unless you crack it.

Like most hash functions, MD5 is neither encryption nor encoding. It can be cracked by brute-force attack and suffers from extensive vulnerabilities as.......

https://en.m.wikipedia.org/wiki/MD5

-11

u/lllama Jul 13 '17 edited Jul 13 '17

Wow another developer, what are the odds????? And it seems we have different experiences wow.

Luckily there are many things you don't know about that still exist. In fact, I should apologise.

I just casually said "Google", but maybe you didn't know what this was either! And there's this site called stackoverflow (wow you got to learn about that one too man), turns out there are even more developers than just you and me, and a lot of them go to this site to talk about stuff.

Here's the crazy shit: you can use Google to search on that site, like this:

https://www.google.com/search?q=inurl:stackoverflow+encrypt+md5

you can even search something not specifically on a site!!

https://www.google.nl/search?q=%22encrypt%20md5%22

But I have you to thank for showing me this wikipedia thing, look what that says on encryption:

In cryptography, encryption is the process of encoding a message or information in such a way that only authorized parties can access it.

Someone could certainly spin that to mean storing information in such a way that only matching information will reveal its content.

I should warn you however, seems like some articles on that site are sometimes contradicting each other though. It's almost as if the articles are written by many different people with different experiences, applying terminology in narrow and wide meanings arbitrarily. Tsk tsk.

Seems like a lot of potential there for people to meaninglessly argue back and forth on semantics, but luckily I never heard of anyone on /r/ProgrammerHumor who would be interested in such a thing!! And since I didn't hear it myself, I should be super skeptical until someone gives me very direct proof , for which I should expand absolutely no energy myself. Of course. I mean we all agree on that at least.

0

u/[deleted] Jul 13 '17

[deleted]

7

u/RIP_CORD Jul 13 '17

Great comment, I think /u/lllama just doesn't want to admit he fudged up... or he is being too sarcastic for me to realize he's trying to say that.

-2

u/lllama Jul 13 '17 edited Jul 13 '17

This is a debate about language, but devolves into a group of people that all know exactly what the difference between a one way hash, symmetric and asymmetric encryption are trying to explain to each other what a one way hash, symmetric and asymmetric encryption are. I suppose these is humor in that for those not involved in the discussion.

Your strongest argument is audience, but I still disagree. For every person in this sub that went "hmmmmmmmnmnmnmnmnmnm actually it's called cracking" there were thousands that thought nothing of it.

Ironically I am one of those people, though I'd have the decency not to comment on it (or at least not hit submit on the comment I typed), but even within the security community it's no longer rare to hear "the passwords that were stolen were properly encrypted" when referring to properly salted hashes..

I think in this case the majority of the audience was probably better off, but perhaps not. We won't ever find this out, incidentally.

As for the spinning of the definition.. of course I chose that world intentionally. It remains again a debate about language and audience. The definition of the word encryption in computer science is much more narrow than its larger meaning (which certainly doesn't strictly prescribe the usage of a well abstracted key concept such as you describe).

But even within computer science you can have nice pointless internet debates about this. A hash based password verification system is essentially an encryption system where the password itself is the key used to store information that can "decrypt" (or decrypt without the qoutes, but that's the whole discussion) whether the information stored matches the key. This meets all your requirements, we have information (the match/no match is still information even if it is not a sequence of bits), and a magic k to unlock the information (k being the password, not the information). Certainly not fits the colloquial definition within the infosec space though.

0

u/[deleted] Jul 13 '17

[deleted]

→ More replies (10)

4

u/RIP_CORD Jul 13 '17

Again, no. Hashing is not encryption where the password is the key. You're litterally arguing against facts here man, facts. There is no discussion about the differences of the two. You're making yourself look dumb because you used the wrong word and are digging a deeper hole.

2

u/lllama Jul 13 '17

Jezus fucking christ.

Do you not understand the difference between "A hash based password verification system" and "hashing"? If you want to tell me I'm wrong about something at least correctly quote the thing I was talking about.

This is like you saying "the sky is blue" and me telling you "Again, no. Sky is not a colour"

→ More replies (4)

3

u/[deleted] Jul 14 '17

You're in /r/programmerHumor, the audience is techies. Don't get salty when you get called out for mixing up technical terms that commonly get mixed up by non-techies. Just move on.

→ More replies (2)

4

u/phail3d Jul 13 '17

Chill out. Hashing/cracking a hash is different from encrypting/decrypting, even if the words are misused all over the place.

2

u/nikkle2 Jul 13 '17

Even in his sarcastic google links, they're all telling the OP you don't use encryption/decryption for hashing. This guy has the terms seriously mixed up.

1

u/lllama Jul 13 '17

As I've tried to have subtly shine through in my post that is a fine theoretical discussion for another subreddit. I think in we're all pretty chill over here.

4

u/RIP_CORD Jul 13 '17

Hey man, I'm sure there are plenty of circumstances where people use terms inappropriately. I bet I could google "the earth is flat" and get results for that too. But at the end of the day you're still using it wrong, no arguing that. Sorry if that makes you upset or something but there's no arguing facts. Unless you're in to alternative facts.

4

u/LinAGKar Jul 13 '17

Someone could certainly spin that to mean storing information in such a way that only matching information will reveal its content.

Even if you were to call that encryption (which is questionable, since the key would depend on the message), that would not make a rainbow table a decrypter.

2

u/daveime Jul 14 '17

encryption is the process of encoding a message or information in such a way that only authorized parties can access it

Here's a hash of my password. I authorize you to access it. Therefore, you can now "decrypt" it.

168E2E6C1EE927C6549694F6C3F3E3EF

Someone could certainly spin that to mean

Only if they didn't know their arse from their elbow. Professionals know the difference between one-way hashing and two-way encryption/decryption.

0

u/lllama Jul 16 '17

Provide the restrictions under which your password was chosen, the hashing method used, and you can get a rough budget and the likelihood that one or more input collisions exist with your password and another one.

Of course if the hashing method is too complicated or parameters are too wide (especially maximum length) it will not be possible.

In the era in which my example tool place (which incidentally wasn't even about storing passwords!), password length for many sites was often very limited (usually about 6-8 characters for bad stupid reasons), only some special characters were allowed, and indeed plain unsalted MD5 was common.

Assuming 5 allowed special characters, there would be about (2128) / ((26+26+10+5)8) = ~8E32 times more hashes than passwords, so chances of recovery would be ~pretty damned high.

For about $20.000 you can buy a machine that hits 200 GH/s for MD5, I might be off a 0 but that should be able to find a password and confirm if it was the only possible input in about 30 minutes.

0

u/JamEngulfer221 Jul 13 '17

That is the most beautifully sarcastic comment I've ever read. You wrote that very well.

3

u/TotesMessenger Green security clearance Jul 14 '17

I'm a bot, bleep, bloop. Someone has linked to this thread from another place on reddit:

If you follow any of the above links, please respect the rules of reddit and don't vote in the other threads. (Info / ^Contact)