EzyTools

Hash & HMAC Generator

SHA-1, SHA-256, SHA-384 and SHA-512, plain or as HMAC with a secret.

Loading…

Runs entirely in your browser. Nothing you enter is uploaded or stored on a server.

About this tool

A hash is not encryption: it is a one-way function that returns the same length whatever you feed it and cannot be reversed. It is used to verify a file arrived intact or to compare a value without storing it. The work is done by the browser built-in Web Crypto, so your text never leaves the device.

How to use

  1. 1Paste the text.
  2. 2Choose the algorithm.
  3. 3Add a key for an HMAC signature.
  4. 4Copy the hash.

When you need it

  • Verifying a download by matching its published hash.
  • Producing an HMAC signature for an API request.
  • Comparing two texts without revealing either.

Frequently asked questions

Why is MD5 missing?

It is cryptographically broken — two different inputs can be made to share a hash. Web Crypto does not offer it, and adding it would mean shipping a library for an algorithm nobody should use.

What is the difference between a hash and HMAC?

A hash depends only on the text, so anyone can produce it. HMAC mixes in a secret key, so only someone holding the key can produce a valid signature — which is why APIs use it for authentication.

Can the original text be recovered from a hash?

No, the function is one-way. What is possible is trying millions of inputs until one matches, which is why passwords are stored with purpose-built functions such as bcrypt or Argon2 rather than a plain hash.

Related tools