class SymmetricEncryption::RSAKey
DEPRECATED - Internal use only
Attributes
rsa[R]
Public Class Methods
new(private_rsa_key)
click to toggle source
DEPRECATED - Internal use only
# File lib/symmetric_encryption/rsa_key.rb, line 6 def initialize(private_rsa_key) @rsa = OpenSSL::PKey::RSA.new(private_rsa_key) end
Public Instance Methods
decrypt(encrypted_key)
click to toggle source
DEPRECATED - Internal use only
# File lib/symmetric_encryption/rsa_key.rb, line 16 def decrypt(encrypted_key) rsa.private_decrypt(encrypted_key) end
encrypt(key)
click to toggle source
DEPRECATED - Internal use only
# File lib/symmetric_encryption/rsa_key.rb, line 11 def encrypt(key) rsa.public_encrypt(key) end