Skip to content

Instantly share code, notes, and snippets.

@pettazz
Created August 4, 2025 03:05
Show Gist options
  • Select an option

  • Save pettazz/3d78606533eb57b5b3d1fa784e306663 to your computer and use it in GitHub Desktop.

Select an option

Save pettazz/3d78606533eb57b5b3d1fa784e306663 to your computer and use it in GitHub Desktop.
doing some hashes for reasons
import json
from hashlib import blake2b
key = b'examplekey'
traits = [
b'exampletrait',
b'anotherexample'
]
hashes = json.dumps([blake2b(trait, digest_size=64, key=key).hexdigest() for trait in traits])
print(hashes)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment