encryptStringWithAes static method
Encrypts the given data
with AES using the specified key
.
Implementation
static Uint8List encryptStringWithAes(String data, Uint8List key) {
return encryptBytesWithAes(Uint8List.fromList(utf8.encode(data)), key);
}