Advertisement
rfmonk

hashlib_sha1.py

Jan 30th, 2014
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. #!/usr/bin/env python
  2.  
  3. # this is from The Python
  4. # Standard Library by example
  5. # ISBN13: 9780321767349
  6.  
  7. import hashlib
  8.  
  9. from hashlib_data import lorem
  10.  
  11. h = hashlib.sha1()
  12. h.update(lorem)
  13. print h.hexdigest()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement