module Sprockets::DigestUtils
def detect_digest_class(bytes)
While not elegant, all the supported digests have a unique bytesize.
Internal: Detect digest class hash algorithm for digest bytes.
def detect_digest_class(bytes) DIGEST_SIZES[bytes.bytesize] end