Re: Why unhashing is not possible?



In article <5thfcoF1dll0lU2@xxxxxxxxxxxxx>,
"Sebastian G." <seppi@xxxxxxxxx> wrote:

Barry Margolin wrote:

In article <k1hcj.12858$vd4.5964@pd7urf1no>,
roberson@xxxxxxxxxxxx (Walter Roberson) wrote:

In article <uvgcj.20007$wy2.19474@edtnps90>,
Unruh <unruh-spam@xxxxxxxxxxxxxx> wrote:
"Sebastian G." <seppi@xxxxxxxxx> writes:
Barry Margolin wrote:
How could the hash possibly be guaranteed to be unique?
For a limited set of inputs, this is very easy.
Yes. then it is not a hash. It may be an encryption, or a translation.
http://en.wikipedia.org/wiki/Perfect_hash_function

http://burtleburtle.net/bob/hash/perfect.html
"Minimal perfect hashing"


I've never seen Perfect Hashing referred to as an encryption or
translation, only ever as a "hash function".

These are not the kind of hashing that the OP is talking about. He's
asking about cryptographic hashes, which are claimed to be
non-reversible.


The OP asked about non-reversible hashes, which are not just the
cryptographic hashes.

In this case, an important reason for the
non-reversibility is that they're many-to-one.


Which is true for only the set of inputs, not arbitrary subsets of inputs.

The word "hash" is used in a number of different contexts in computer
science, you have to be careful not to confuse them.

Nonsense, it's always the same: A hash is a function A^* -> B^m for fixed
alphabets A and B and a fixed integer m.

But the types of hashes and their properties are very dependent on WHY
you're hashing. The algorithms you use to implement a symbol table
(which is where perfect hashing becomes useful) are completely different
from those used for cryptography (where it's important that it be
difficult to generate the same hash) or password encryption (where
irreversibility is critical).

--
Barry Margolin, barmar@xxxxxxxxxxxx
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
.



Relevant Pages

  • Re: Why unhashing is not possible?
    ... For a limited set of inputs, ... only ever as a "hash function". ... The OP asked about non-reversible hashes, which are not just the cryptographic hashes. ... non-reversibility is that they're many-to-one. ...
    (comp.security.misc)
  • Re: Why unhashing is not possible?
    ... Barry Margolin wrote: ... How could the hash possibly be guaranteed to be unique? ... For a limited set of inputs, ... This is only true for cryptographic hashes. ...
    (comp.security.misc)
  • Re: beginners attempt at hash function
    ... >>>We have an informal programming class and our instructor has given ... >>>the exercise of devising and implementing a hash function. ... Cryptographic hashes, on the other hand, are designed primarily to ... for conventional indexing hashes; faster isn't always better. ...
    (comp.programming)
  • Re: Is there a non-dumb way to replicate "Select distinct" in fortran?
    ... The dumb way is of course to sort on those columns and sequentially ... In that case, you generate an array of hash values, usually a 32 bit ... When the number of distinct keys is modest perfect hashing is well-worth considering, particularly if the universe of distinct keys is known in advance. ...
    (comp.lang.fortran)
  • Re: BSD license compatible hash algorithm?
    ... slightly off topic side note NIST is having a contest to attempt ... All of this is true but it's not very useful for hash tables ... Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org ...
    (freebsd-hackers)