Created
August 4, 2025 03:05
-
-
Save pettazz/3d78606533eb57b5b3d1fa784e306663 to your computer and use it in GitHub Desktop.
doing some hashes for reasons
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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