handy.moe

All tools / Debug tools

A digital stamp on a phone

Hash generator

Hash text or a file with MD5, SHA-1, SHA-256, SHA-384, SHA-512, CRC32 and Adler-32, add a key for HMAC, and check a download against its published hash.

Runs in your browser. Pasted data never leaves it.

How to use it

  1. Type or paste text, or drop a file on the text box. Every hash updates as you type.
  2. Optionally enter an HMAC key to get keyed hashes.
  3. Click a hash to copy it. To check a download, paste the expected hash into the compare box.
  4. Files are read in your browser and never uploaded.

Questions

Which hash should I use?

For anything where security matters, use SHA-256 or SHA-512. MD5 and SHA-1 are broken against deliberate collisions: someone can craft two different files with the same MD5, so don't use them to prove a file is safe. They are fine for spotting accidental corruption. CRC32 is a checksum for catching transmission errors and is not a security hash at all.

Is a hash the same as encryption?

No. A hash is one-way: you can't get the text back. But short or guessable inputs (passwords) can be found by trying many guesses, so never store passwords as plain SHA-256 or MD5. Use a slow password hash such as bcrypt, scrypt or Argon2.

Can I hash a big file?

Yes. MD5, CRC32 and Adler-32 are computed in chunks, so very large files work. SHA-1/256/384/512 use the browser's built-in crypto, which needs the whole file in memory: the limit is a few hundred megabytes, and larger files show the others without SHA.

What is HMAC?

A hash mixed with a secret key, used to sign messages (webhooks, API requests, JWT's HS256). Enter a key above and every hash becomes an HMAC. The key stays in your browser.

How do I check a download?

Hash the file here and paste the hash the publisher gave you into the compare box: it says whether they match, ignoring letter case. Or on the command line: shasum -a 256 file, sha256sum file or certutil -hashfile file SHA256.

Is what I paste or test sent anywhere?

No. This page works entirely inside your browser, and pasted data never leaves your device. It makes no network requests while you use it, and the page also tells your browser to block them (a Content-Security-Policy with connect-src 'none'), so even a bug could not send your data out. To check it yourself, open your browser's developer tools, go to the Network tab, and use the tool: nothing will appear. There is no account, no analytics and no logging.