haskell-crypto / cryptonite

lowlevel set of cryptographic primitives for haskell
Other
226 stars 139 forks source link

Please, provide support for the W3C Subresource Integrity (SRI) hash format #337

Closed Anton-Latukha closed 1 year ago

Anton-Latukha commented 3 years ago

W3C specification provides for the web the universal form of the hash format, which is a composition <the canonical hash algorithm name>-<the digest in the format of standard Base64>.

For example for the contents of the https://www.w3.org/TR/SRI it would be:

sha384-PBef2P3ODQVicRpD/RHqRvtWC9Dp6N+Zf5R8oCyqdp5iRGj3u1J2DiT/IqEAqpyZ