Category · 1 tool · 1 guide
Hash and cryptography tools
A hash function turns any input, from a one-word string to a multi-gigabyte file, into a short fixed-length fingerprint. The same input always gives the same hash, and changing a single bit gives a completely different one. That makes hashes the standard way to check that a download is intact, detect duplicate files, build cache keys and sign data.
The hard part is choosing the right algorithm for the job. MD5 and SHA-1 are still everywhere in checksums, ETags and legacy systems, but they are broken for security uses. SHA-256 is the safe default for integrity, HMAC adds a secret key for authentication, and passwords need slow, salted algorithms such as Argon2 or bcrypt rather than any fast hash.
These tools let you compute and compare hashes quickly while you debug, verify a file or match a value stored in a database. Text and files are hashed in your browser, so the content never leaves your machine.
Tools in this category
Common tasks
- Verify a downloaded fileHash the file you downloaded and compare it to the checksum published by the vendor to confirm it was not corrupted.
- Match a legacy hash in a databaseReproduce the MD5 an older system stored for a value, such as a cache key or a Gravatar email hash.
- Pick the right algorithmUnderstand when MD5, SHA-256, HMAC or a password hash is the correct choice and why.
- Check a JWT signatureHS256 tokens are signed with HMAC-SHA256; verify one with your secret to confirm it is genuine.
- Encode a binary digest as textConvert a raw hash to Base64 when a header such as Content-MD5 or a subresource integrity attribute expects it.
Key concepts
- Hash function
- A one-way function that maps input of any size to a fixed-size digest. You cannot reverse a hash to get the input, but you can hash a guess and compare, which is how weak passwords are cracked.
- Collision
- Two different inputs with the same hash. For MD5 and SHA-1, attackers can create collisions on purpose, so they must not be used for signatures or certificates.
- Checksum
- A hash published alongside a file so users can verify it. It protects against corruption, and against tampering only if the checksum itself comes from a trusted source.
- HMAC
- A hash combined with a secret key. Only someone with the key can produce a matching HMAC, which is why webhooks and JWTs use it to prove a message is authentic.
- Salt
- Random data added to each password before hashing so identical passwords get different hashes. It stops attackers from using precomputed tables against your whole user table at once.
Best practices
- Use SHA-256 or stronger for new integrity checks; keep MD5 only for compatibility with systems that require it.
- Never store passwords with MD5 or SHA-256. Use Argon2id, scrypt or bcrypt with a per-user salt.
- Compare HMACs and signatures with a constant-time comparison function to avoid timing attacks.
- Be explicit about encoding: hash the UTF-8 bytes of text, and agree on hex or Base64 output on both sides.
- Publish checksums over HTTPS or sign them, otherwise an attacker who can replace a file can replace its checksum too.