How to use SHA-1 Hash Generator
- Paste the text you want to hash.
- The 40-character digest appears immediately.
- Copy it, and compare the whole string case-insensitively when verifying.
- Output is always 160 bits — 40 hexadecimal characters.
- The digest of the empty string is da39a3ee5e6b4b0d3255bfef95601890afd80709.
- Computed with Web Crypto in your browser; nothing is transmitted.
How broken it is, precisely
Collision resistance is gone. Google and CWI demonstrated the first practical collision in 2017 with SHAttered — two different PDFs with the same SHA-1 — and the 2020 SHA-1 is a Shambles work produced a chosen-prefix collision, which is the dangerous kind, for around $45,000 of cloud compute. That cost has only fallen since. Preimage resistance is intact: you still cannot take a digest and find an input that produces it. So SHA-1 remains adequate for non-adversarial integrity checking and is unfit for signatures, certificates or anything where someone benefits from a forgery.
Where you still legitimately meet it
Git object names are SHA-1, which is why every commit hash is 40 hex characters. Git has known about this since 2017 and mitigates with collision detection, and SHA-256 repositories exist, but the transition is slow and most repositories today are still SHA-1. HMAC-SHA1 is used in TOTP and in older AWS request signing, and — importantly — is not broken, because HMAC’s security does not rest on collision resistance. Legacy APIs and checksums for older archives make up most of the rest.
What replaced it
SHA-256 for new work, everywhere. Certificate authorities stopped issuing SHA-1 certificates in 2016 and browsers stopped accepting them in 2017. NIST formally deprecated SHA-1 in 2022 with a 2030 end date for federal use. If you are choosing today there is no argument for SHA-1: SHA-256 is unbroken, widely supported and no slower in any way that matters.
Frequently asked questions
How long is a SHA-1 hash?
Is SHA-1 still safe to use?
Where is SHA-1 still used?
Why does Git still use SHA-1?
How do we know nothing is uploaded? Test it yourself on the privacy proof page.