What it does
An HMAC is a short fingerprint of a message that can only be made by someone who knows a secret key. Web services use it to sign webhooks and API requests: the sender computes the HMAC, the receiver computes it again, and if they match the message was not changed. This page makes HMAC-SHA1, SHA-256, SHA-384 and SHA-512 from your text and key, shown as hex or Base64, using the browser’s own crypto.
bcrypt is built for storing passwords. It is deliberately slow, and it mixes in a random salt, so the same password gives a different hash each time. The “cost” number sets how slow: each step up doubles the work. You can make a bcrypt hash of a password, or paste a hash and a password to see whether they belong together. Nothing leaves your device, but do not type a real password you still use. To hash a file or text without a key use the hash checker, and to make a strong password to hash, the password generator.
How to use it
- Choose the HMAC or bcrypt tab.
- For HMAC type the message and the secret key, pick the hash and the output format. The result updates as you type.
- For bcrypt type a password, pick a cost and press Make hash. To check, paste a hash in the second box and press Check.
What each option does
- Hash: SHA-256 is the usual choice. SHA-1 is only for old systems.
- Output: hex is the common way; Base64 is shorter and used by some APIs.
- Cost (bcrypt): 10 is a common minimum; 12 is a good modern choice. Higher is slower to make and to attack. This page allows 4 to 14.
- Key as: type the key as text or as hex bytes.
Worked example
RFC 4231 test case 2: key Jefe, message what do ya want for nothing?. HMAC-SHA256 in hex is 5bdcc146bf60754e6a042426089575c75a003f089d2739839dec58b964ec3843; in Base64 it is W9zBRr9gdU5qBCQmCJV1x1oAPwidJzmDnexYuWTsOEM=. For bcrypt, the password U*U against $2a$05$CCCCCCCCCCCCCCCCCCCCC.E5YPO9kmyuRGyh0XouQYb4YMJKvyOeW is a published test pair and says “match”.
FAQs
Is an HMAC the same as a hash? No. A plain hash needs no key, so anyone can make it. An HMAC needs the key.
Why is my bcrypt hash different each time? The salt is random, and it is stored inside the hash. Checking reads the salt back out.
What is the 72 byte limit? bcrypt only uses the first 72 bytes of a password. The page warns you if yours is longer.
Can I use this to check a webhook? Yes: paste the raw body as the message, your signing key, and compare with the header value. If you need to read the token itself, try the JWT decoder.
Where the numbers come from
- HMAC: RFC 2104; test vectors from RFC 2202 (SHA-1) and RFC 4231 (SHA-2). bcrypt: Provos and Mazieres, 'A Future-Adaptable Password Scheme' (USENIX 1999); test vector from the OpenBSD bcrypt tests. Checked 2026-12-05.
Standard scientific values, such as constants, atomic weights and melting points, are facts found in every textbook; we name where ours were checked. If you are an author or publisher and want a value, a credit or a table changed or removed, tell us and we will act quickly.
Last updated 2026-12-05.