Sha256: 7e283e984444733b88c01a7e42c823c50cc8b59b0a8de27e53cc511c4c31168a
Contents?: true
Size: 433 Bytes
Versions: 9
Compression:
Stored size: 433 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + "/../spec_helper") describe Braintree::SHA256Digest do describe "self.hexdigest" do it "returns the sha256 hmac of the input string (test case 6 from RFC 2202)" do key = "secret-key" message = "secret-message" expect(Braintree::SHA256Digest.hexdigest(key, message)).to eq("68e7f2ecab71db67b1aca2a638f5122810315c3013f27c2196cd53e88709eecc") end end end
Version data entries
9 entries across 9 versions & 1 rubygems