Aes class

Functions related to the AES encryption

Constructors

Aes()

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

decrypt(String value) List<int>
Decrypts the encrypted string. This supports having a pre-set IV or having the IV encoded on the value by having the value encoded as ${base64Iv}:${base64EncryptedValue}.
encrypt(dynamic value) String
Encrypts the given value. If an IV was pre-set, that IV will be used otherwise a new random one will be created. The resulting string will be returned in the following form: ${base64Iv}:${base64EncryptedValue}.
iv(dynamic iv) Aes
Sets the IV for use.
key(dynamic key) Aes
Sets the secret key on the object.
mode(String mode) Aes
Sets the AES encryption mode.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
padding(String padding) Aes
Sets the AES encryption padding.
toString() String
A string representation of this object.
inherited

Operators

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