SHA-1 is a deterministic cryptographic hash function that produces a fixed-size 160-bit digest for input data. It once served as an industry standard but is now insecure for new security applications. section 4.2.2 section 4.8
Use SHA-1 only when handling historical systems or data. Maven Central retains .sha1 files for backward compatibility, while Git uses SHA-1 to identify files and commits. section 4.2.2 section 4.3
Legacy artifact checks
A Maven Central artifact may have a matching .sha1 file, allowing tools to detect accidental corruption. This does not protect against an attacker who changes both the artifact and its hash. section 4.2.2 section 4.8
Figure 4.5 Files in Maven Central. Notice the .sha1 and .md5 files that contain hash values of the corresponding artifacts. MD5 and SHA-1 are insecure, but Maven Central still uses them for backward compatibility.
Shows legacy .sha1 and .md5 artifact files and their continued use for backward compatibility. section 4.2.2
