Module: Turntabler::DigestHelpers Private
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Provides a set of helper functions for dealing with message digests
Instance Method Summary collapse
-
#digest(data) ⇒ String
private
Generates a SHA1 hash from the given data.
Instance Method Details
#digest(data) ⇒ String
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Generates a SHA1 hash from the given data.
11 12 13 |
# File 'lib/turntabler/digest_helpers.rb', line 11 def digest(data) Digest::SHA1.hexdigest(data.to_s) end |