Skip to content

Commit

Permalink
Removed un-necessary digest method
Browse files Browse the repository at this point in the history
  • Loading branch information
mloughran committed May 6, 2012
1 parent 3b1c022 commit 212968d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/signature.rb
Expand Up @@ -90,13 +90,10 @@ def auth_hash
private

def signature(token)
digest = OpenSSL::Digest::SHA256.new
OpenSSL::HMAC.hexdigest(digest, token.secret, string_to_sign)
end

def digest
OpenSSL::Digest::Digest.new('sha256')
end

def string_to_sign
[@method, @path, parameter_string].join("\n")
end
Expand Down

0 comments on commit 212968d

Please sign in to comment.