Documentation ¶
Overview ¶
Package sri implements helper functions to calculate SubResource Integrity hashes. https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity
Index ¶
Constants ¶
View Source
const ( // SHA256 algo SHA256 = Algo("sha256") // SHA384 algo SHA384 = Algo("sha384") // SHA512 algo SHA512 = Algo("sha512") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hash ¶
type Hash struct {
// contains filtered or unexported fields
}
Hash represents a SRI-hash
Click to show internal directories.
Click to hide internal directories.