Sha256: 2765eca3085e7614bd3571042712ad235881686bef546e775f2319d5f5aa27fb
Contents?: true
Size: 343 Bytes
Versions: 92
Compression:
Stored size: 343 Bytes
Contents
module Braintree module SHA256Digest # :nodoc: def self.hexdigest(private_key, string) _hmac(private_key, string) end def self._hmac(key, message) key_digest = ::Digest::SHA256.digest(key) sha256 = OpenSSL::Digest.new("sha256") OpenSSL::HMAC.hexdigest(sha256, key_digest, message.to_s) end end end
Version data entries
92 entries across 92 versions & 1 rubygems