AesCrypt class

Wraps encryption and decryption methods and algorithms.

Constructors

AesCrypt.new([String password = ''])
Creates the library wrapper.

Properties

hashCode int
The hash code for this object.
no setterinherited
owMode ↔ AesCryptOwMode
getter/setter pair
passBytes Uint8List
getter/setter pair
password String
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

aesDecrypt(Uint8List data) Uint8List
aesEncrypt(Uint8List data) Uint8List
Encrypts binary data data with AES algorithm.
aesSetKeys(Uint8List key, [Uint8List? iv]) → void
Sets AES encryption key key and the initialization vector iv.
aesSetMode(AesMode mode) → void
Sets AES mode of operation as mode.
aesSetParams(Uint8List key, Uint8List iv, AesMode mode) → void
Sets AES encryption key key, the initialization vector iv and AES mode mode.
createIV() Uint8List
Creates random initialization vector.
createKey([int length = 32]) Uint8List
Creates random encryption key of length bytes long.
hmacSha256(Uint8List key, Uint8List data) Uint8List
Computes HMAC-SHA256 code for binary data data using cryptographic key key.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setOverwriteMode(AesCryptOwMode mode) → void
Sets overwrite mode mode for write file operations during encryption or decryption process.
setPassword(String data) → void
Sets encryption/decryption password.
sha256(Uint8List data) Uint8List
Computes SHA256 hash for binary data data.
toString() String
A string representation of this object.
inherited

Operators

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