Crypto class

Contains the properties required to configure the encryption of Message payloads.

Constructors

Crypto()

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

generateRandomKey({int keyLength = defaultKeyLengthInBits}) Future<Uint8List>
Generates and returns a Future with a random key as Uint8List, to be used in the encryption of the channel.
getDefaultParams({required dynamic key}) Future<CipherParams>
Returns a CipherParams object, using the private key used to encrypt and decrypt payloads, and the default mode, key length and algorithm.

Constants

defaultAlgorithm → const String
The algorithm to use for encryption. Only aes is supported.
defaultMode → const String
The cipher mode. Only cbc is supported.