Generate SHA-1 (Secure Hash Algorithm 1) hash values from text input. SHA-1 produces a 160-bit hash value. While SHA-1 is deprecated for security purposes, it is still used for checksums and legacy systems.
You need to match legacy systems that still require SHA-1.
You are verifying older checksum files.
Input
legacy-payload
Output
6c1f6b2a36e7f4d7a3b2c4a0d1e2f3a4b5c6d7e8
Prefer SHA-256 for modern security requirements.
Compare Git object hashes in older workflows.
Validate legacy artifacts still published with SHA-1.
Using SHA-1 for new security-sensitive applications.
Assuming SHA-1 is collision-resistant (it is not).
SHA-1 outputs 40 hex characters.
Use SHA-256 or SHA-512 for stronger integrity.
SHA-1 is commonly used for checksums, data integrity verification, and in legacy systems. However, SHA-256 is recommended for new applications.
SHA-1 is considered cryptographically broken and should not be used for security-sensitive applications. Use SHA-256 or SHA-512 instead.
A SHA-1 hash is 40 hexadecimal characters long (160 bits = 20 bytes = 40 hex characters).