RSAPrivateKey class
PrivateKey
using RSA Algorithm
Constructors
- RSAPrivateKey.new(BigInt modulus, BigInt exponent, BigInt p, BigInt q)
- Create an RSAPrivateKey for the given parameters.
- RSAPrivateKey.fromString(String privateKeyString)
- Create an RSAPrivateKey from the given String.
Properties
- asPointyCastle → RSAPrivateKey
-
Export a RSAPrivateKey as Pointy Castle RSAPrivateKey
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- publicKey → RSAPublicKey
-
Get the RSAPublicKey of the RSAPrivateKey
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createSHA256Signature(
Uint8List message) → Uint8List - Sign an message with SHA-256 which can be verified using the associated RSAPublicKey
-
createSHA512Signature(
Uint8List message) → Uint8List - Sign an message with SHA-512 which can be verified using the associated RSAPublicKey
-
createSignature(
String message) → String - Sign an message with SHA-256 which can be verified using the associated RSAPublicKey
-
decrypt(
String message) → String - Decrypt a message which was encrypted using the associated RSAPublicKey
-
decryptData(
Uint8List message) → Uint8List - Decrypt a message which was encrypted using the associated RSAPublicKey
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toFormattedPEM(
) → String - Export a RSAPrivateKey as formatted PEM String which can be reversed using RSAPrivateKey.fromPEM.
-
toPEM(
) → String - Export a RSAPrivateKey as PEM String which can be reversed using RSAPrivateKey.fromPEM.
-
toString(
) → String -
Export a RSAPrivateKey as String which can be reversed using RSAPrivateKey.fromString.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromPEM(
String pemString) → RSAPrivateKey - Create an RSAPrivateKey from the given PEM-String.