Re: Why unhashing is not possible?
- From: Barry Margolin <barmar@xxxxxxxxxxxx>
- Date: Thu, 27 Dec 2007 17:04:59 -0500
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:http://en.wikipedia.org/wiki/Perfect_hash_function
Barry Margolin wrote:Yes. then it is not a hash. It may be an encryption, or a translation.
How could the hash possibly be guaranteed to be unique?For a limited set of inputs, this is very easy.
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 ***
.
- Follow-Ups:
- Re: Why unhashing is not possible?
- From: Walter Roberson
- Re: Why unhashing is not possible?
- References:
- Why unhashing is not possible?
- From: Randell_D
- Re: Why unhashing is not possible?
- From: Barry Margolin
- Re: Why unhashing is not possible?
- From: Sebastian G.
- Re: Why unhashing is not possible?
- From: Unruh
- Re: Why unhashing is not possible?
- From: Walter Roberson
- Re: Why unhashing is not possible?
- From: Barry Margolin
- Re: Why unhashing is not possible?
- From: Sebastian G.
- Why unhashing is not possible?
- Prev by Date: Re: Why unhashing is not possible?
- Next by Date: Re: Why unhashing is not possible?
- Previous by thread: Re: Why unhashing is not possible?
- Next by thread: Re: Why unhashing is not possible?
- Index(es):
Relevant Pages
|