class

Crypto::RSA::Key

Inherits Reference / Object

Represents a RSA private or public key.

Instance methods

e

The RSA public or private exponent, a positive integer.

Source
n

The RSA modulus, a positive integer.

Source
to_a

Returns a two-element array containing the modulus and exponent.

Source
valid?

Returns true if this is a valid RSA key according to PKCS1.

Source