Created
March 17, 2014 08:52
-
-
Save Natim/9595956 to your computer and use it in GitHub Desktop.
UUID from text
This file contains 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 hashlib | |
import sys | |
from uuid import UUID | |
text = sys.stdin.read() | |
print UUID(hashlib.sha256(text).hexdigest()[:32]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment