I do not know much about cryptography. But, I'm in a situation where I need a hashing method that does not exhibit the avalanche effect. I tried Googling but couldn't find anything.
1 Answers
In general, most hashing methods do not exhibit the avalanche effect:
most hash functions -- unless they were specifically designed to be cryptographically secure -- accidentally fail the avalanche test -- all cyclic redundancy checks (CRCs), all error correcting codes, nearly all checksums, etc.
A few hash functions -- such as Locality-sensitive hashing and the way feature hashing summarizes a document as a short vector of integers -- deliberately fail the avalanche test, because they are designed to have certain features that are incompatible with the avalanche effect.
In cryptography, my understanding is that failing the avalanche test makes a hash function vulnerable to many attacks that every cryptographic hash function is specifically designed to prevent. So every cryptographic hash function either exhibits the avalanche effect or is considered broken.
Are you looking for an example of a broken hash function to show students why this is such a bad thing? Or (what I would find more interesting) are you designing a system where this property would be useful in some way? I'd like to learn more about what you are trying to do.
- 5,744
- 4
- 22
- 35