What is the SHA-256 hash if the input is null, i.e. an empty bitstring? (Not the hash of 0 or "0".)
Asked
Active
Viewed 4.0k times
What is the SHA-256 hash if the input is null, i.e. an empty bitstring? (Not the hash of 0 or "0".)
sha256sum /dev/nullandprintf | sha256sum– mwfearnley Jul 25 '22 at 10:40
– Simone Aonzo Jan 09 '24 at 16:20import hashlib; m = hashlib.sha256(); assert m.hexdigest() == 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'