The SHA-256 coded in a straightforward way in python
- The official publication of SHA algorithm.
- A python numpy implementation of SHA-256 following the exact steps and notations as in the publication, in
sha256py
.
python3 sha256.py
will test the algorithm against hashlib
import sha256
message = list(b"some text")
digest=sha256.sha256(message)
hashedMessage=sha256.hexdigest(digest)