sec-pentesting-toolkit/Cryptography/Hash_Functions/SHA/sha_simple_example.py
2015-01-03 20:47:39 -05:00

10 lines
No EOL
197 B
Python

#!/usr/bin/env python
def example_sha():
from Crypto.Hash import SHA256
hash = SHA256.new()
hash.update('message')
print hash.digest()
if __name__ == '__main__':
example_sha()