Created
October 17, 2018 10:56
-
-
Save bef/a886311554f1d28a76ea96043a157a7f to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env python2 | |
from zbase32 import zbase32 | |
import hashlib | |
import sys | |
input = sys.argv[1] | |
print "hashing " + input | |
m = hashlib.sha1() | |
m.update(input) | |
digest = m.digest() | |
print zbase32.b2a(digest) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment