Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Non cryptographic hashes
#1
How to use fast but short, non cryptographic hashes - 32 and 64 bit?
Reply
#2
Possibly, the MD5 hash is the fastest and shortest, but i may be wrong.

For 32bit and 64bit what?
Sig:
>>> import this

The UNIX philosophy: "Do one thing, and do it well."

"The danger of computers becoming like humans is not as great as the danger of humans becoming like computers." :~ Konrad Zuse

"Everything should be made as simple as possible, but not simpler." :~ Albert Einstein
Reply
#3
Look at 32-bit MurmurHash(mmh3) and 64-bit FNV-1a hash.

(Mar-19-2023, 09:22 PM)rob101 Wrote: Possibly, the MD5 hash is the fastest and shortest, but i may be wrong.
md5 Wrote:MD5 (message-digest algorithm) is a cryptographic protocol used for authenticating messages as well as content verification and digital signatures.
So i guess now you see the problem as AndrzejB ask about non cryptographic hashes.
rob101 likes this post
Reply
#4
32 bit will be too short - birthday collisions
mmh3 is good for 64+64 and 128 bit, faster than mmh3 32 bit
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  cryptographic error saisankalpj 7 8,793 Jun-25-2018, 05:22 PM
Last Post: saisankalpj
  Code that generates MD5 hashes from IPv6 addresses giving differant answers? PyMD5 4 6,425 Oct-17-2016, 02:39 AM
Last Post: Skaperen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020