Class OpenSSL::PKey::RSA
In: ext/openssl/ossl_pkey.c
Parent: cPKey

let rdoc know about mOSSL and mPKey

Methods

Public Class methods

Parameters

  • size is an integer representing the desired key size. Keys smaller than 1024 should be considered insecure.
  • exponent is an odd number normally 3, 17, or 65537.

Parameters

  • size is an integer representing the desired key size.
  • encoded_key is a string containing PEM or DER encoded key.
  • pass is an optional string with the password to decrypt the encoded key.

Examples

Public Instance methods

Parameters

  • cipher is a Cipher object.
  • pass is a string.

Examples

Stores all parameters of key to the hash INSECURE: PRIVATE INFORMATIONS CAN LEAK OUT!!! Don’t use :-)) (I’s up to you)

The return value is always true since every private key is also a public key.

Makes new instance RSA PUBLIC_KEY from PRIVATE_KEY

to_pem(...)

Alias for export

to_s(...)

Alias for export

Prints all parameters of key to buffer INSECURE: PRIVATE INFORMATIONS CAN LEAK OUT!!! Don’t use :-)) (It’s up to you)

[Validate]

ruby-doc.org is a service of James Britt and Neurogami, a Ruby application development company in Phoenix, AZ.

Documentation content on ruby-doc.org is provided by remarkable members of the Ruby community.

For more information on the Ruby programming language, visit ruby-lang.org.

Want to help improve Ruby's API docs? See Ruby Documentation Guidelines.