A subresource integrity declaration
Implement the SRI (Subresource Integrity) standard, used to validate that a given dependency is of the expected version.
One may get an integrity tag in base64 using openssl:
$ cat vibe.d-0.10.1.zip | openssl dgst -binary -sha512 | base64 vwQ9tYTjLb981j41+3GZZUgKXm/5PlKpmY2bplRSUM8ajL03++LGm/TcfFFarJrHex8CTb5ZLWdi Y1fFAOSkSw==
Parses a string representation as an IntegrityTag
Internal constructor for IntegrityTag.make
Verify if the data passed in parameter matches this IntegrityTag
Build and returns an IntegrityTag
The hash function to use
The value of the digest computed with algorithm, base64-encoded
https://w3c.github.io/webappsec-subresource-integrity/#the-integrity-attribute
See Implementation
A subresource integrity declaration
Implement the SRI (Subresource Integrity) standard, used to validate that a given dependency is of the expected version.
One may get an integrity tag in base64 using openssl: