Sha256: e974f2b51d94d28a2bf75dbd12a4f303a8314f6d7346355e520aadae0779bf93
Contents?: true
Size: 435 Bytes
Versions: 3
Compression:
Stored size: 435 Bytes
Contents
module Sumsub # https://developers.sumsub.com/api-reference/#signing-a-request class MessageSigner def self.sign( time:, resource:, method:, body: nil, secret_key: Sumsub.configuration.secret_key ) data = time.to_s + method + '/resources/' + resource + body.to_s digest = OpenSSL::Digest.new('sha256') OpenSSL::HMAC.hexdigest(digest, secret_key, data) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sumsub-ruby-sdk-0.1.3 | lib/sumsub/message_signer.rb |
sumsub-ruby-sdk-0.1.2 | lib/sumsub/message_signer.rb |
sumsub-ruby-sdk-0.1.1 | lib/sumsub/message_signer.rb |