Class: Abenla::Signature
- Inherits:
-
Object
- Object
- Abenla::Signature
- 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, ) string = '' string << "#{key}-#{Digest::MD5.hexdigest(secret)}-" string << .join("-") Digest::MD5.hexdigest(string) end |