Class: Onionurigen::RSAGen
- Inherits:
-
Object
- Object
- Onionurigen::RSAGen
- Defined in:
- lib/onionurigen/rsa_gen.rb
Instance Attribute Summary collapse
-
#private_key ⇒ Object
Returns the value of attribute private_key.
-
#public_key ⇒ Object
Returns the value of attribute public_key.
Instance Method Summary collapse
-
#initialize ⇒ RSAGen
constructor
A new instance of RSAGen.
Constructor Details
#initialize ⇒ RSAGen
Returns a new instance of RSAGen.
7 8 9 10 |
# File 'lib/onionurigen/rsa_gen.rb', line 7 def initialize @private_key = OpenSSL::PKey::RSA.new 1024 @public_key = @private_key.public_key end |
Instance Attribute Details
#private_key ⇒ Object
Returns the value of attribute private_key.
5 6 7 |
# File 'lib/onionurigen/rsa_gen.rb', line 5 def private_key @private_key end |
#public_key ⇒ Object
Returns the value of attribute public_key.
5 6 7 |
# File 'lib/onionurigen/rsa_gen.rb', line 5 def public_key @public_key end |