Releases: 42z-io/hashembed
Releases · 42z-io/hashembed
Use base64 encoding for integrity hashes
Support integrity hashes
Support retrieval of integrity hashes (SHA-256) for content hashed paths.
Usage:
output := hashedFs.GetHash("/path/to/file.js")
fmt.Println(output)
// Output: 8d77f04c3be2abcd554f262130ba6c30f277318e66588b6a0d95f476c4ae7c48
Changelog
- Added new
HashedFs.GetHash(path)
function to retrieve the integrity hash (SHA-256) of a path - Modifed FileHasher interface to allow retrieval of the algorithm