22
$\begingroup$

What is the SHA-256 hash if the input is null, i.e. an empty bitstring? (Not the hash of 0 or "0".)

$\endgroup$
0

1 Answer 1

45
$\begingroup$

The result of SHA-256 of an empty string is:

e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855

Accordingly to this and this

$\endgroup$
1
  • 2
    $\begingroup$ Verified in Linux with e.g. sha256sum /dev/null and printf | sha256sum $\endgroup$
    – mwfearnley
    Jul 25, 2022 at 10:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.