module Sprockets::DigestUtils

def hexdigest_integrity_uri(hexdigest)

Returns a String or nil if hash algorithm is incompatible.

digest - The String hexbyte digest of the asset content.

as per the subresource integrity specification.
Public: Generate hash for use in the `integrity` attribute of an asset tag
def hexdigest_integrity_uri(hexdigest)
  integrity_uri(unpack_hexdigest(hexdigest))
end