MD5 Generator
MD5 hash of text, with a compare box for an expected checksum.
A SHA1 generator for text: type or paste a string and get its 40-character SHA-1 hash, then compare it with a value you already have.
Hashed as UTF-8. A trailing space or line break changes the hash.
SHA-1 was published by NIST in 1995 in FIPS 180-1. Like MD5 it works on 512-bit blocks, but it keeps five 32-bit words instead of four and runs 80 rounds per block. The result is 160 bits, which is 40 hex characters.
The page uses crypto.subtle.digest('SHA-1', ...), the hashing built into your browser, on the UTF-8 bytes of your text. The text stays on your device.
| Input | SHA-1 |
|---|---|
abc | a9993e364706816aba3e25717850c26c9cd0d89d |
hello | aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d |
| empty text | da39a3ee5e6b4b0d3255bfef95601890afd80709 |
The abc row is the standard test vector from the SHA-1 specification, so it is a quick way to confirm that another SHA-1 tool behaves the same way.
sha1sum on the command line for a file.Not against collisions. An attacker with enough computing power can make two inputs with the same SHA-1. It still detects accidental damage, so old checksums keep working for that.
Yes. Git names commits and files by SHA-1 by default, and it added a hardened version that detects the known collision attack. Newer Git versions can also create repositories that use SHA-256.
160 bits. That is 40 characters in hex or 28 characters in Base64.
Often used together with SHA-1 Generator.
MD5 hash of text, with a compare box for an expected checksum.
SHA-256 hash of text in hex or Base64, compared with a checksum when you paste one.
Signs text or files with HMAC-SHA256 and other hashes, and checks signatures.