github.com/anchore/syft@v1.38.2/syft/file/digest.go (about)

     1  package file
     2  
     3  // Digest represents a cryptographic hash of file contents.
     4  type Digest struct {
     5  	// Algorithm specifies the hash algorithm used (e.g., "sha256", "md5").
     6  	Algorithm string `json:"algorithm"`
     7  
     8  	// Value is the hexadecimal string representation of the hash.
     9  	Value string `json:"value"`
    10  }