RosettaCodeData/Task/SHA-256/Python/sha-256.py

5 lines
148 B
Python
Raw Permalink Normal View History

2013-04-11 01:07:29 -07:00
>>> import hashlib
2013-06-05 21:47:54 +00:00
>>> hashlib.sha256( "Rosetta code".encode() ).hexdigest()
2013-04-11 01:07:29 -07:00
'764faf5c61ac315f1497f9dfa542713965b785e5cc2f707d6468d7d1124cdfcf'
>>>