Encoded results: (Computation is automatic)
Base16:
Base64:
Base64Url:
Test cases: toggle toggle
Algmessagekeyresult
SHA-1-blank--- (b16) da39a3ee5e6b4b0d3255bfef95601890afd80709
(b64) 2jmj7l5rSw0yVb/vlWAYkK/YBwk=
abc-- (b16) a9993e364706816aba3e25717850c26c9cd0d89d
(b64) qZk+NkcGgWq6PiVxeFDCbJzQ2J0=
SHA-256-blank--- (b16) e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
(b64) 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=
abc-- (b16) ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad
(b64) ungWv48Bz+pBQUDeXa4iI7ADYaOWF3qctBD/YfIAFa0=
HMAC-sha256 -blank-secret (b16) f9e66e179b6747ae54108f82f8ade8b3c25d76fd30afde6c395822c530196169
(b64) +eZuF5tnR65UEI+C+K3os8Jddv0wr95sOVgixTAZYWk=
abcsecret (b16) 9946dad4e00e913fc8be8e5d3f7e110a4a9e832f83fb09c345285d78638d8a0e
(b64) mUba1OAOkT/Ivo5dP34RCkqegy+D+wnDRShdeGONig4=
Notes:
  1. This page uses the WebCrypto library, for the hash and HMACs computation.
  2. Any data you enter on this page stays in the browser, and is never sent to any third-party site. The hash computation is performed in your browser. If you specify a key for HMAC, the key is used only for HMAC calculation, and never leaves your browser. Data does get stored in localStorage. Having said that, you should take care to not provide sensitive information or keys into untrusted web pages.
  3. The results shown by this page are different encodings that represent the same value. And, Base16 encoding is sometimes called "Hex encoding". Just a reminder, base64-encoded values are case sensitive, base16-encoded results are not. This is characteristic of the encodings, not special to this page, or to hash functions or HMACs.
  4. For message content, whitespace in the content is significant. This page converts line-breaks to newline (\n). It's not possible to include a carriage-return (CR) in the text value, because the logic on this page strips them. This page does not strip trailing newlines. Also good to remember: the hash for 'abc\n' is completely different from the hash for 'abc'. The hash for 'abc\r\n' is completely different from the hash for 'abc\n'.
  5. Unicode is ok. The calculator will encode the string as UTF-8 bytes before computing the checksum. UTF-8 ought to be good enough for anybody. :)
  6. This was written by DinoChiesa. Contact me with questions, suggestions, or kudos via .