« Back to Index

[Python Security Hashing]

View original Gist on GitHub

Tags: #python #security #hashing #hash

Python Security Hashing.py

# see also: https://docs.python.org/3.7/library/crypto.html

from hashlib import blake2b

h = blake2b(key=b'pseudorandom key', digest_size=16)
h.update(b'message data')
h.hexdigest()  # '3d363ff7401e02026f4a4687d4863ced'