module Sprockets::DigestUtils

def hexdigest(obj)

Returns a String digest of the object.

obj - A JSON serializable object.

The same as `pack_hexdigest(digest(obj))`.

Internal: Generate a hexdigest for a nested JSON serializable object.
def hexdigest(obj)
  build_digest(obj).hexdigest!
end