Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>> import hashlib, zlib
- >>> content="hello world"
- >>> header="%s %d\0" % ("blob",len(content))
- >>> store=header+content
- >>> hashlib.sha1(store).hexdigest()
- >>> 95d09f2b10159347eece71399a7e2e907ea3df4f
Add Comment
Please, Sign In to add comment