module Sprockets::DigestUtils

def pack_urlsafe_base64digest(bin)

Returns urlsafe base64 String.

bin - String bytes

Internal: Pack a binary digest to a urlsafe base64 encoded string.
def pack_urlsafe_base64digest(bin)
  pack_base64digest(bin).tr('+/', '-_').tr('=', '')
end