from hashlib import blake2b import time k = str(time.time()).encode('utf-8') h = blake2b(key=k, digest_size=16) h.hexdigest()
Here is what the above code is Doing:
1. It’s creating a key from the current time.
2. It’s creating a hash object from the key.
3. It’s returning the hexadecimal digest of the hash object.