Sha256: d0ab2be861e6d08e145a4b73d0aa517b29dc9b44b9ee8a4730b0d676eccfbe32
Contents?: true
Size: 272 Bytes
Versions: 3
Compression:
Stored size: 272 Bytes
Contents
# coding: utf-8 module JytPay module Sign module Rsa def self.sign(rsa_private_key, str) digest = OpenSSL::Digest::SHA1.new signature_orig = rsa_private_key.sign(digest, str) signature_orig.unpack('H*')[0] end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
jyt_pay-0.3.0 | lib/jyt_pay/sign/rsa.rb |
jyt_pay-0.2.0 | lib/jyt_pay/sign/rsa.rb |
jyt_pay-0.1.0 | lib/jyt_pay/sign/rsa.rb |