Sha256: a3c15eef44ad0565dfffce112d6ace493bd3c086109957bb1145ee0f2888a1e4

Contents?: true

Size: 234 Bytes

Versions: 2

Compression:

Stored size: 234 Bytes

Contents

module SpreeSignifyd
  module RequestVerifier

    def build_sha(key, message)
      sha256 = OpenSSL::Digest::SHA256.new
      digest = OpenSSL::HMAC.digest(sha256, key, message)
      Base64.encode64(digest).strip
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
solidus_signifyd-1.1.0 lib/spree_signifyd/request_verifier.rb
solidus_signifyd-1.0.1 lib/spree_signifyd/request_verifier.rb