Examples of SHA digests

From Wikipedia, the free encyclopedia

The following are some examples of SHA digests. ASCII encoding is assumed for all messages.

Contents

[edit] SHA-1 hashes

SHA1("The quick brown fox jumps over the lazy dog") 
 = 2fd4e1c6 7a2d28fc ed849ee1 bb76e739 1b93eb12

Even a small change in the message will, with overwhelming probability, result in a completely different hash due to the avalanche effect. For example, changing dog to cog:

SHA1("The quick brown fox jumps over the lazy cog") 
 = de9f2c7f d25e1b3a fad3e85a 0bd17d9b 100db4b3

The hash of the zero-length message is:

SHA1("")
 = da39a3ee 5e6b4b0d 3255bfef 95601890 afd80709

[edit] SHA-224 hashes

SHA224("The quick brown fox jumps over the lazy dog") 
 = 730e109b d7a8a32b 1cb9d9a0 9aa2325d 2430587d dbc0c38b ad911525
// Avalanche effect when changing the last word to "cog":
SHA224("The quick brown fox jumps over the lazy cog")
 = fee755f4 4a55f20f b3362cdc 3c493615 b3cb574e d95ce610 ee5b1e9b

The hash of the zero-length message is:

SHA224("")
 = d14a028c 2a3a2bc9 476102bb 288234c4 15a2b01f 828ea62a c5b3e42f

[edit] SHA-256 hashes

SHA256("The quick brown fox jumps over the lazy dog") 
 = d7a8fbb3 07d78094 69ca9abc b0082e4f 8d5651e4 6d3cdb76 2d02d0bf 37c9e592
// Avalanche effect when changing the last word to "cog":
SHA256("The quick brown fox jumps over the lazy cog")
 = e4c4d8f3 bf76b692 de791a17 3e053211 50f7a345 b46484fe 427f6acc 7ecc81be 

The hash of the zero-length message is:

SHA256("")
 = e3b0c442 98fc1c14 9afbf4c8 996fb924 27ae41e4 649b934c a495991b 7852b855

[edit] SHA-384 hashes

SHA384("The quick brown fox jumps over the lazy dog")
 = ca737f10 14a48f4c 0b6dd43c b177b0af d9e51693 67544c49 4011e331 7dbf9a50
   9cb1e5dc 1e85a941 bbee3d7f 2afbc9b1
// Avalanche effect when changing the last word to "cog":
SHA384("The quick brown fox jumps over the lazy cog")
 = 098cea62 0b0978ca a5f0befb a6ddcf22 764bea97 7e1c70b3 483edfdf 1de25f4b
   40d6cea3 cadf00f8 09d422fe b1f0161b

The hash of the zero-length message is:

SHA384("")
 = 38b060a7 51ac9638 4cd9327e b1b1e36a 21fdb711 14be0743 4c0cc7bf 63f6e1da
   274edebf e76f65fb d51ad2f1 4898b95b

[edit] SHA-512 hashes

SHA512("The quick brown fox jumps over the lazy dog")
 = 07e547d9 586f6a73 f73fbac0 435ed769 51218fb7 d0c8d788 a309d785 436bbb64
   2e93a252 a954f239 12547d1e 8a3b5ed6 e1bfd709 7821233f a0538f3d b854fee6
// Avalanche effect when changing the last word to "cog":
SHA512("The quick brown fox jumps over the lazy cog")
 = 3eeee1d0 e11733ef 152a6c29 503b3ae2 0c4f1f3c da4cb26f 1bc1a41f 91c7fe4a
   b3bd8649 4049e201 c4bd5155 f31ecb7a 3c860684 3c4cc8df cab7da11 c8ae5045

The hash of the zero-length message is:

SHA512("")
 = cf83e135 7eefb8bd f1542850 d66d8007 d620e405 0b5715dc 83f4a921 d36ce9ce
   47d0d13c 5d85f2b0 ff8318d2 877eec2f 63b931bd 47417a81 a538327a f927da3e