@nakov/

SHA 256 hello in Python

Python

SHA-256 hash calculation in Python

fork
loading
Files
  • main.py
main.py
1
2
3
4
import hashlib, binascii

sha256hash = hashlib.sha256(b'hello').digest()
print("SHA-256('hello') = ", binascii.hexlify(sha256hash))