Sha256: 47a68e66beb01347c4420fb0a2185df837bbe2511e05f40f28821798ad3a1b79
Contents?: true
Size: 432 Bytes
Versions: 1
Compression:
Stored size: 432 Bytes
Contents
module Xml module Kit module Crypto class RsaCipher ALGORITHMS = { 'http://www.w3.org/2001/04/xmlenc#rsa-1_5' => true, } def initialize(algorithm, key) @key = key end def self.matches?(algorithm) ALGORITHMS[algorithm] end def decrypt(cipher_text) @key.private_decrypt(cipher_text) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
xml-kit-0.1.0 | lib/xml/kit/crypto/rsa_cipher.rb |