Rsa class

Constructors

Rsa()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

aes(Aes aes) → Rsa
Sets the Aes object to use when performing the encryption of the data.
decrypt(String value) → List<int>
Decrypts the given value and returns the resulting bytes. This expects the passed in value to be of the format: ${rsaEncryptedAesKey}:${base64Iv}:${base64EncryptedValue}
digest(dynamic digest) → Rsa
Sets the RSASignDigest to use for signing and verifying.
encoding(dynamic encoding) → Rsa
Sets the RSAEncoding to use for RSA based encryption values.
encrypt(dynamic value) → String
If an Aes object is already set, this will use that object. Otherwise, it will...
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
privateKey(dynamic key) → Rsa
Sets the private key on this encryption object.
publicKey(dynamic key) → Rsa
Sets the public key on this encryption object.
sign(dynamic value) → List<int>
Signs the value and returns the resulting byte array.
toString() → String
A string representation of this object.
inherited
verify(dynamic value, dynamic signature) → bool
Verifies the value and the signature.

Operators

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