Hash generator.

Work out the MD5, SHA-⁠1, SHA-⁠256, SHA-⁠384 and SHA-⁠512 hash of a text or a file, and compare it with the one you were given. It is worked out in your browser and nothing is sent.

Its hashes will show here.

Worked out in your browser with the Web Crypto API, and MD5 with our own code. Nothing is sent.

Questions.

  • What is a hash?

    The fingerprint of a text or a file, always the same length. If a single letter changes, all of it changes, and from it there is no telling what was there.

  • Can a SHA-⁠256 be decrypted?

    No. A hash is not encrypted, it only goes one way. All anyone can do is try texts until one gives the same fingerprint, which is why passwords are stored with salt and slow algorithms, not with a bare SHA-⁠256.

  • How do I check that a downloaded file is the right one?

    Choose the file, paste under «Compare» the hash published by whoever provides it, and it tells you whether it matches and which one. If it does not, the file is not the same.

  • Why does my hash not match my terminal's?

    Nearly always a line break at the end. echo adds one and this does not, so try echo -n or printf. An extra space changes it too.

  • Is it safe to use MD5 or SHA-⁠1?

    To check that a file arrived whole, yes. For security, no, because two different files with the same fingerprint can be made. For that, SHA-⁠256 or above.

  • What is an HMAC?

    The hash of a message with a secret key. Payment notices and webhooks use it to prove they come from who they say. With the same key and the same message, here you get the signature they should carry.

Let's talk.

Tell us what you need and one of the partners who write the code gets back to you.