Re: Why unhashing is not possible?



Randell_D <fiprojects.com@xxxxxxxxx> writes:

I've always led the belief that if something can be created/built,
then it can be "uncreated/unbuilt". In technology this is sometimes
referred to as reverse-engineering. I understand too how hashing can
be used within programs and fast database lookups but I failed
miserably discussing the subject of hashes with someone who could not
understand when I told them that you cannot reverse the process... I
know you can crudely hack it (using John the Ripper for example) but
you cannot "uncompress it" so to speak.

So... my question here to you good people is... why can't a hash be...
well... unhashed?

Surely if the hash is unique, we know the process that got us the hash
we have only to reverse the process... we can't... so... but why not?

No, a hash is NOT unique. Many many many many inputs give the same hash.
That is the essense of a hash.
And at each step in the hash, information is thrown away. Ie, in running
the hash in reverse one would have to keep guessing at the thrown away
material.

Secondly to find even one of those may be very difficult. Yes, If I try
2^128 inputs there is good possiblity I will find the one giving me the
hash I have, but 2^128 is a very large number and I cannot try that many.

For an encryption, which is one to one, there are 2^60 or 2^128 ( depending
on the key length) by which that output could have been generated from the
input ( the process depends on the key). Thus I do NOT know how the output
was generated and thus cannot reverse it.

.



Relevant Pages

  • Re: Regarding sudo
    ... if both passwords collide in the same hash. ... Here is an md5sum: 4d5fcfe735a39ff224d7cf2bac0d8aa7 Reverse it. ... and i can't find info if during the timestamp, sudo will allow to be used by ...
    (comp.os.linux.setup)
  • Re: Why unhashing is not possible?
    ... for example let's add the word 'Pie' to our hash table, ... The key 'Apple' hashes to 0x41, ... Since the database key is 24 bits, 72 bits, or even of variable length, ... The only way we have of constructing a function to 'reverse' the hash ...
    (comp.security.misc)
  • Inverting a hash safely
    ... The standard answer on how to invert a hash, so that keys become values and vice ... versa, is to use reverse: ... does there exist a 'safe hash invert' function in some CPAN ...
    (perl.beginners)
  • Re: Inverting a hash safely
    ... It's not so much a user error message as an assertion ... failure - the assumption made by the programmer, ... 'the hash is one-to-one') and then the assertions and other checks are firstly ... the pattern of 'check unique values; now reverse it' is common enough ...
    (perl.beginners)
  • Re: OT: Its April 12th, what happened to Global Warming, AlGore?
    ... established this religion called Global Warming, ... reverse their story and at the same time create a new ice age crisis ... The funny thing is that the high political office candidates will lag ... at 60 mph and thrown in reverse suddenly. ...
    (alt.autos.toyota)