# jsSHA Hash Test Page

The short/long inputs as well as their correct hashes are supplied by the FIPS 180-2 specification; it can be found at http://csrc.nist.gov/publications/fips/fips180-2/fips180-2withchangenotice.pdf. The short/medium/large inputs for HMAC and their corresponding correct hashes (at least for SHA-1) can be found at http://csrc.nist.gov/publications/fips/fips198/fips-198a.pdf.

Instructions: By default, this page should load 10 of the 15 test vectors given by the FIPS 180-2 specification and 3 of the 4 test vectors given by the FIPS 198a specification. You may also change any of the input values and then click off the input box to have the hash update.

SHA-1 Tests
SHA-1 Med ASCII Input:
SHA-1 Med ASCII Result:
SHA-1 Med Hex Input:
SHA-1 Med Hex Result:
SHA-1 Med Correct:
SHA-1 Long ASCII Input:
SHA-1 Long ASCII Result:
SHA-1 Long Hex Input:
SHA-1 Long Hex Result:
SHA-1 Long Correct:
SHA-224 Tests
SHA-224 Med ASCII Input:
SHA-224 Med ASCII Result:
SHA-224 Med Hex Input:
SHA-224 Med Hex Result:
SHA-224 Med Correct:
SHA-224 Long ASCII Input:
SHA-224 Long ASCII Result:
SHA-224 Long Hex Input:
SHA-224 Long Hex Result:
SHA-224 Long Correct:
SHA-256 Tests
SHA-256 Med ASCII Input:
SHA-256 Med ASCII Result:
SHA-256 Med Hex Input:
SHA-256 Med Hex Result:
SHA-256 Med Correct:
SHA-256 Long ASCII Input:
SHA-256 Long ASCII Result:
SHA-256 Long Hex Input:
SHA-256 Long Hex Result:
SHA-256 Long Correct:
SHA-384 Tests
SHA-384 Med ASCII Input:
SHA-384 Med ASCII Result:
SHA-384 Med Hex Input:
SHA-384 Med Hex Result:
SHA-384 Med Correct:
SHA-384 Long ASCII Input:
SHA-384 Long ASCII Result:
SHA-384 Long Hex Input:
SHA-384 Long Hex Result:
SHA-384 Long Correct:
SHA-512 Tests
SHA-512 Med ASCII Input:
SHA-512 Med ASCII Result:
SHA-512 Med Hex Input:
SHA-512 Med Hex Result:
SHA-512 Med Correct:
SHA-512 Long ASCII Input:
SHA-512 Long ASCII Result:
SHA-512 Long Hex Input:
SHA-512 Long Hex Result:
SHA-512 Long Correct:
HMAC/SHA-1 Tests
HMAC/SHA-1 Short ASCII Text:
HMAC/SHA-1 Short Hex Key:
HMAC/SHA-1 Short Hex Result:
HMAC/SHA-1 Short Correct:
HMAC/SHA-1 Med ASCII Text:
HMAC/SHA-1 Med Hex Key:
HMAC/SHA-1 Med Hex Result:
HMAC/SHA-1 Med Correct:
HMAC/SHA-1 Large Hex Text:
HMAC/SHA-1 Large Hex Key:
HMAC/SHA-1 Large Hex Result:
HMAC/SHA-1 Large Correct:
HMAC/SHA-224 Tests
HMAC/SHA-224 Short ASCII Text:
HMAC/SHA-224 Short Hex Key:
HMAC/SHA-224 Short Hex Result:
HMAC/SHA-224 Short Correct:
HMAC/SHA-224 Med ASCII Text:
HMAC/SHA-224 Med Hex Key:
HMAC/SHA-224 Med Hex Result:
HMAC/SHA-224 Med Correct:
HMAC/SHA-224 Large Hex Text:
HMAC/SHA-224 Large Hex Key:
HMAC/SHA-224 Large Hex Result:
HMAC/SHA-224 Large Correct:
HMAC/SHA-256 Tests
HMAC/SHA-256 Short ASCII Text:
HMAC/SHA-256 Short Hex Key:
HMAC/SHA-256 Short Hex Result:
HMAC/SHA-256 Short Correct:
HMAC/SHA-256 Med ASCII Text:
HMAC/SHA-256 Med Hex Key:
HMAC/SHA-256 Med Hex Result:
HMAC/SHA-256 Med Correct:
HMAC/SHA-256 Large Hex Text:
HMAC/SHA-256 Large Hex Key:
HMAC/SHA-256 Large Hex Result:
HMAC/SHA-256 Large Correct:
HMAC/SHA-384 Tests
HMAC/SHA-384 Short ASCII Text:
HMAC/SHA-384 Short Hex Key:
HMAC/SHA-384 Short Hex Result:
HMAC/SHA-384 Short Correct:
HMAC/SHA-384 Med ASCII Text:
HMAC/SHA-384 Med Hex Key:
HMAC/SHA-384 Med Hex Result:
HMAC/SHA-384 Med Correct:
HMAC/SHA-384 Large Hex Text:
HMAC/SHA-384 Large Hex Key:
HMAC/SHA-384 Large Hex Result:
HMAC/SHA-384 Large Correct:
HMAC/SHA-512 Tests
HMAC/SHA-512 Short ASCII Text:
HMAC/SHA-512 Short Hex Key:
HMAC/SHA-512 Short Hex Result:
HMAC/SHA-512 Short Correct:
HMAC/SHA-512 Med ASCII Text:
HMAC/SHA-512 Med Hex Key:
HMAC/SHA-512 Med Hex Result:
HMAC/SHA-512 Med Correct:
HMAC/SHA-512 Large Hex Text:
HMAC/SHA-512 Large Hex Key:
HMAC/SHA-512 Large Hex Result:
HMAC/SHA-512 Large Correct: