Class: Abenla::Signature

Inherits:
Object
  • Object
show all
Defined in:
lib/abenla-ruby/signature.rb

Class Method Summary collapse

Class Method Details

.digest(key = nil, secret = nil, options) ⇒ Object



6
7
8
9
10
11
# File 'lib/abenla-ruby/signature.rb', line 6

def self.digest(key=nil, secret=nil, options)
  string = ''
  string << "#{key}-#{Digest::MD5.hexdigest(secret)}-"
  string << options.join("-")
  Digest::MD5.hexdigest(string)
end