class

Crypto::RSA::PublicKey

Inherits Crypto::RSA::Key / Reference / Object

Constructors

new(n, e)
Source

Class methods

load_pkcs1(key : String | Bytes, format : Crypto::Encoding::CertEncoding = :pem)
Source

Instance methods

e

The RSA public or private exponent, a positive integer.

Source
n

The RSA modulus, a positive integer.

Source
valid?

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

Source