Module: Turntabler::DigestHelpers Private

Included in:
Client, Resource
Defined in:
lib/turntabler/digest_helpers.rb

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

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.

Parameters:

  • data (String)

    The data to create a hash from

Returns:

  • (String)


11
12
13
# File 'lib/turntabler/digest_helpers.rb', line 11

def digest(data)
  Digest::SHA1.hexdigest(data.to_s)
end