Hash collision
Computer science situation where distinct data elements share an identifier (e.g. name, tag, checksum)
In computer science, a hash collision or hash clash is when two distinct pieces of data in a hash table share the same hash value. The hash value in this case is derived from a hash function which takes a data input and returns a fixed length of bits.
Nº Q1195184 ★★
Uncommon · History
Hash collision
Computer science situation where distinct data elements share an identifier (e.g. name, tag, checksum)
In computer science, a hash collision or hash clash is when two distinct pieces of data in a hash table share the same hash value. The hash value in this case is derived from a hash function which takes a data input and returns a fixed length of bits.
From Wikipedia
In computer science, a hash collision or hash clash is when two distinct pieces of data in a hash table share the same hash value. The hash value in this case is derived from a hash function which takes a data input and returns a fixed length of bits. Hash is typically used as a many-to-one function, with the number of potential inputs (size of input domain) much larger that the number of potential output values ("range"), making collisions inevitable ("pigeonhole principle"). For the cryptographic hash functions (CHFs), the output is a compact representative of particular input value used by data integrity algorithms to operate efficiently using this representative in place of the much larger input data. A collision violates the assumptions of integrity algorithms, so CHFs are designed to make finding a practical collision computationally infeasible (so-called collision resistance). The typical uses of non-cryptographic hash functions (NCHFs) – like bloom filters, hash tables, count sketches – are less sensitive to collisions, so NCHFs require just the uniform distribution and avalanche properties. Still, collision resistance is an additional feature that is useful against hash flooding attacks; simple NCHFs, like the cyclic redundancy check (CRC), have essentially no collision resistance and thus cannot be used with an input open to manipulation by an attacker. Non-cryptographic applications employ multiple ways of handling the hash collisions when they occur.
Text: Wikipédia, CC BY-SA 4.0. · Image: Jorge Stolfi (Public domain) ·
Related cards
-
C
Collision attack
Cryptographic attack
Nº Q389463 ★
Not listed
-
C
Collision resistance
Property of cryptographic hash functions
Nº Q1779448 ★
Not listed
-
C
Collision detection
Term in computer science
Nº Q1550329 ★★
Not listed
-
Collision
Physical event where two or more bodies exert forces on each other for a short time
Nº Q238053 ★★★
Not listed
-
Hash table
Associates data values with key values - a lookup table
Nº Q207440 ★★★
Not listed
-
Shock (mechanics)
Term in mechanics
Nº Q129302 ★★
Not listed