Generate XXH32 Hash using Python

xxhash library

  1. Install xxhash library from the command line:
pip install xxhash
  1. Generate XXH32 hash:
import xxhash

text = 'Hello'
hashObject = xxhash.xxh32(text)
digest = hashObject.hexdigest()

print(digest)

Leave a Comment

Cancel reply

Your email address will not be published.