Given a sha256 hash of a str
in python:
import hashlibhash = hashlib.sha256('foobar'.encode('utf-8'))
How can the hash
be converted to a UUID
?
Note: there will obviously be a many-to-one mapping of hexdigest to UUID given that a hexdigest has 2^256
possible values and a UUID has 2^128
.
Thank you in advance for your consideration and response.