Examples
-
Input
legacy-content
About SHA-1 Hash
SHA-1 has been broken for collision resistance since 2017 and shouldn't be used for anything security-sensitive anymore - but it's still baked into old Git internals, legacy TLS configurations, and artifact formats that haven't been updated.
This exists for exactly that legacy case: quickly reproducing a SHA-1 checksum an older system expects. For anything new, use SHA-256 or stronger.
FAQ
- Should I use SHA-1 for new code?
- No - use SHA-256 or stronger.