AesCrypt class
Wraps encryption and decryption methods and algorithms.
Properties
Methods
-
aesDecrypt(
Uint8List data) → Uint8List -
aesEncrypt(
Uint8List data) → Uint8List -
Encrypts binary data
datawith AES algorithm. -
aesSetKeys(
Uint8List key, [Uint8List? iv]) → void -
Sets AES encryption key
keyand the initialization vectoriv. -
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 vectorivand AES modemode. -
createIV(
) → Uint8List - Creates random initialization vector.
-
createKey(
[int length = 32]) → Uint8List -
Creates random encryption key of
lengthbytes long. -
hmacSha256(
Uint8List key, Uint8List data) → Uint8List -
Computes HMAC-SHA256 code for binary data
datausing cryptographic keykey. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setOverwriteMode(
AesCryptOwMode mode) → void -
Sets overwrite mode
modefor 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