encryptStringWithAes static method

Uint8List encryptStringWithAes(
  1. String data,
  2. Uint8List key
)

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);
}