Enabling Calculation of SHA-1 Digests for Scanned Files
Code Insight automatically calculates the MD5 digest for project files during a scan as a means to determine which files have changed between scans and to “exact match” scanned files with OSS or third-party files (whose digests are stored in the Code Insight Compliance Library).
However, Code Insight can be configured to also calculate file SHA-1 digests during scans should your site want these digests.
MD5 digests are always calculated whether or not SHA-1 support is enabled.
The enablement or disablement of SHA-1 support requires that a database administrator set a global property in the Code Insight database. (By default, this support is enabled when a customer site first installs Code Insight 2021 R3 or later or migrates from a pre-2021 R3 version.)
The following topics describe how the database administrator enables or disables SHA-1 support for Code Insight and, if it is enabled, how users can view the latest digest values for scanned files.