lib/xmlenc/algorithms/rsa_15.rb in xmlenc-0.0.1 vs lib/xmlenc/algorithms/rsa_15.rb in xmlenc-0.1.0

- old
+ new

@@ -1,13 +1,17 @@ module Xmlenc module Algorithms - class Rsa15 + class RSA15 def initialize(key) @key = key end def decrypt(cipher_value, options = {}) @key.private_decrypt(cipher_value) + end + + def encrypt(data, option = {}) + @key.public_encrypt(data) end end end end