SHA1 Hashing
SHA1 Hashing
Calculate string SHA1 hash online
Result
Copy your result below
SHA1 Hashing
Choose ...
Calculate string SHA1 hash online
SHA-1 produces a 160-bit digest, shown as 40 hexadecimal characters. It's stronger than MD5, but a real collision attack broke it for good in 2017, so most systems have since moved on. You'll still run into it in Git commit hashes and a handful of older certificate chains.
Hashing the text below with SHA-1 always produces this 40-character digest:
hello world
→
2aae6c35c94fcfb415dbe95f408b9ce91ee846ed
Is SHA-1 safe to use in 2026?
Not for security purposes. A practical collision attack (SHAttered) was published in 2017, so SHA-1 is deprecated for certificates, signatures, and password storage.
Why does Git still use SHA-1?
Git uses it as a content identifier, not a security boundary. Newer versions are moving to SHA-256, but most repositories today are still SHA-1 under the hood.
How is SHA-1 different from SHA-256?
SHA-1 outputs 160 bits (40 hex characters) and is broken for security use. SHA-256 outputs 256 bits (64 hex characters) and remains the recommended standard.
Can two different files have the same SHA-1 hash?
In theory any hash function can collide, and for SHA-1 that has actually been demonstrated. That real-world proof is exactly why it should be avoided for anything security-critical.