AesCrypt class
Wraps encryption and decryption methods and algorithms.
Constructors
- AesCrypt.new([String password = ''])
- Creates the library wrapper.
Properties
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 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 vectoriv
and AES modemode
. -
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 keykey
. -
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