Does anyone know if there's a real benefit regarding decreasing collision probability by combining hash functions? I especially need to know this regarding 32 bit hashing, namely combining Adler32 and CRC32. Basically, will adler32(crc32(data)) yield a smaller collision probability than crc32(data)? The last comment here gives some test results in favor of combining, but no source is mentioned. For my purpose, collision is not critical (i.e. the task does not involve security), but I'd rather minimize the probability anyway, if possible. PS: I'm just starting in the wonderful world of hashing, doing a lot of reading about it. Sorry if I asked a silly question, I haven't even acquired the proper "hash dialect" yet, probably my Google searches regarding this were also poorly formed. Thanks.
Hash function combining - is there a significant decrease in collision risk?
1.5k Views Asked by Webmaster At
1
There are 1 best solutions below
Related Questions in HASH
- Trouble validating md5 hashed password with randomly generated salt?
- Why k and l for LSH used for approximate nearest neighbours?
- PHP password_hash() / bcrypt
- Unique hash/index for time interval
- Order-independent Hash Algorithm
- git hard reset - what am I doing wrong?
- Java HashMap, hashCode() equals() - how to be consistent with multiple keys?
- Create hash from variables in loop
- Hashing integer coordinates of different sizes
- Xcode salting and hashing a password
- Is there a way to generate a Guid from a list of Guids?
- Path reconstruction with Hashing?
- Creating a Hash with keys from an array and empty arrays as the values
- How to read data from a different file without using YAML or JSON
- change value in hash using an array of keys in ruby
Related Questions in COLLISION
- How to check collision if only bottom half of the sprite matters (think of a cherry with a stem)
- unity 2D 5.0: collision with colliders, one with "is trigger" checked and one with "is trigger" unchecked
- How to check for collisions in ThreeJS?
- Java Game Development- Sprites colliding?
- didBeginContact logic OSX swift
- Removing items from ArrayList upon collision (Java)?
- Unity3D Play sound from particle
- Sticky Collisions
- Side Collisions
- Always a Collision
- How can I detect a specific 3d model collision three.js
- Collision detection between rectangles (no overlap) - libgdx
- Libgdx - collisions between two moving circles
- Collision between a line and a face
- c# XNA collesion slows movement
Related Questions in CRC32
- Why crc32 value require -lz
- CRC32 Collision Probability
- convert crc javascript func to c$ func
- Calculating CRC32 checksum of a file
- CRC32 Hashing in Java
- How to divide input in parallel crc?
- Improve Python code/ STM CRC32 function
- Python CRC-32 woes
- How to do CRC check on executable loaded in memory?
- Difference between CRC and hash method (MD5, SHA1)
- checking crc32 of zero padded bitstream
- JavaScript CRC32
- How do I use this CRC-32C C# library?
- python, google cloud platform: unable to overwite a file from google bucket: CRC32 does not match
- How to right using CRC32 on Android
Related Questions in ADLER32
- Fast implementation of rolling hash in PHP
- different adler32 check sum on objective-c and C#
- Why is ```(n+1)(BASE-1)``` added when calculating the NMAX of Adler-32?
- Does Adler32 of message + adler sum to zero (like CRC32)
- Compressed AS2 Body
- How to calculate Adler32 checksum for zip in Bash?
- Adler32 generated checksum doesnt match the .txt files checksum
- Crypto++ convert Adler32 digest (byte array) to uint32_t
- How to compute the Adler32 in zlib
- Adler-32 checksum generating - why bit and shift right operator are used
- python3 and numba, wrong calculation of adler32 checksum
- Algorithm for message code validation
- adler32 checksum in objective c
- Non-cryptographic hash functions that are homomorphic with respect to concatenation
- Hash function combining - is there a significant decrease in collision risk?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
This doesn't make sense combining them in series like that. You are hashing one 32-bit space to another 32-bit space.
In the case of a crc32 collision in the first step, the final result is still a collision. Then you add on any potential collisions in the adler32 step. So it can not get any better, and can only be the same or worse.
To reduce collisions, you might try something like using the two hashes independently to create a 64-bit output space:
adler32(data) << 32 | crc32(data)
Whether there is significant benefit in doing that, I'm not sure.
Note that the original comment you referred to was storing the hashes independently: