Skip to content

feat: generate hashes for other than sha-512 #699

Description

@eviler007

Describe the bug

This tool can only generate hashes whose integrity is encrypted using sha-512.

To Reproduce

When some dependency is encrypted by sha-1,The SBOM generated by the tool does not contain hashes.

Expected behavior

When some dependency is encrypted by sha-1 or other encryption algorithm,the SBOM generated by the tool can have the correct hashes.

Screenshots or output-paste

236148684-a1e3e7f3-2f04-4c96-8fa4-2c5781ed8d07

Environment

  • @cyclonedx/cyclonedx-npm version: 1.11.0
  • NPM version: 8.5.5
  • Node version: 16.15.0
  • OS: windows 10

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions