RSAPublicKey class

PublicKey using RSA Algorithm

Implemented types

Constructors

RSAPublicKey(BigInt modulus, BigInt exponent)
Create an RSAPublicKey for the given parameters.
RSAPublicKey.fromString(String publicKeyString)
Create an RSAPublicKey from the given String.

Properties

asPointyCastle RSAPublicKey
Export a RSAPublicKey as Pointy Castle RSAPublicKey
read-only, override
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

encrypt(String message) → String
Encrypt a message which can only be decrypted using the associated RSAPrivateKey
toString() → String
Export a RSAPublic key as String which can be reversed using RSAPublicKey.fromString.
verifySignature(String message, String signature) → bool
Verify the signature of a message signed with the associated RSAPrivateKey
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited