class Xmlenc::Algorithms::RSA15
Public Class Methods
new(key)
click to toggle source
# File lib/xmlenc/algorithms/rsa_15.rb, line 4 def initialize(key) @key = key end
Public Instance Methods
decrypt(cipher_value, options = {})
click to toggle source
# File lib/xmlenc/algorithms/rsa_15.rb, line 8 def decrypt(cipher_value, options = {}) @key.private_decrypt(cipher_value) end
encrypt(data, option = {})
click to toggle source
# File lib/xmlenc/algorithms/rsa_15.rb, line 12 def encrypt(data, option = {}) @key.public_encrypt(data) end