How to use SHA-1 Generator
- Paste the text.
- Pick the output format.
- Compare with an expected value if you have one.
- Copy the 40-character digest.
SHA-1 Generator features
- SHA-1 via the browser's native crypto.subtle.digest
- Hex, Base64, Base64url and binary output
- Expected-hash comparison and whitespace trimming
- Live results, copy and download buttons
SHA-1 Generator example
SHA-1 of "abc"
Input:
abcOutput:
a9993e364706816aba3e25717850c26c9cd0d89dFrequently asked questions about SHA-1 Generator
Should I still use SHA-1?
Only when a legacy protocol requires it. Practical collisions were demonstrated in 2017 (SHAttered), so certificates, signatures and new designs should use SHA-256 or better.
Why does Git use SHA-1?
Git object ids were designed in 2005 as content addresses, not as a security boundary, and Git now uses a hardened variant that detects known collision attacks. Newer Git versions can use SHA-256 repositories.
What is the digest size?
160 bits, shown as 40 hexadecimal characters or 28 Base64 characters.
Is my input sent to a server?
No. The hash is computed with crypto.subtle.digest in your browser.
Technical notes
SHA-1 outputs 160 bits. Collision attacks (SHAttered, 2017) make it unsuitable for signatures and certificates, but it remains in use for Git object ids, HMAC-SHA1 in legacy APIs and non-security checksums.