HashAlgorithm

Hash Algorithm - Hash Crash

Definition one of problems while using the hash algorithm. If the input value is different, the output value should be different. But, the output is same. We calls, “Hash Crash” Characteristics less hash crush is better hash algorithm No hash crush is almost impossible. Example [input]->[output] A->03 B->02 C->03 The output of A and C are same. This is hash crush. solution Most hash algorithm search next output when hash crush happen.

Hash Algorithm - Uniformity

Definition one of properties for Hash algorithm map the expected inputs as evenly as possible over its output range without hash crash. Example [input]->[output] first hash algorithm A->03 B->02 C->03 second hash algorithm A->01 B->02 C->03 explanation if the uniformity of hash algorithm is high, it less create hash crush. Thus, the second hash algorithm’s uniformity is higher than the first hash algorithm conclusion high uniformity = less hash crush = higher possible to learn with O(1) of time complexity other questions Can we possible to make perfect hash algorithm that does not make any hash crush?

Hash Algorithm

Definition hash function transfer any value to certain conditioned value such as length. If the input value is same, the output value should be same. In use encryption Hashtable is using hash function to store values quickly. Comparing two huge data to verify same file or not quickly. Kinds cryptographic hash function : hash function that used for encryption hash function : hash function that does not used for encryption Properties efficiency uniformity collision resistance pre-image resistance second pre-image resistance