Class: Encryption::PublicKey

Inherits:
PKey
  • Object
show all
Defined in:
lib/modules/asymmetric/public_key.rb

Instance Method Summary collapse

Methods inherited from PKey

#initialize, #to_pem, #to_s

Constructor Details

This class inherits a constructor from Encryption::PKey

Instance Method Details

#decrypt(data) ⇒ Object



10
11
12
# File 'lib/modules/asymmetric/public_key.rb', line 10

def decrypt(data)
  @key.public_decrypt(data)
end

#encrypt(data) ⇒ Object



6
7
8
# File 'lib/modules/asymmetric/public_key.rb', line 6

def encrypt(data)
  @key.public_encrypt(data)
end