decryptUint8List static method

Uint8List decryptUint8List({
  1. required String base64Encrypted,
  2. required String key,
  3. required String iv,
})

Implementation

static Uint8List decryptUint8List({required String base64Encrypted, required String key, required String iv}) {
  if (key.length != 32) throw ArgumentError("Key must be 32 bytes for AES-256.");
  if (iv.length != 16) throw ArgumentError("IV must be 16 bytes for AES.");
  return _aesCbc(_u8(key), _u8(iv), base64.decode(base64Encrypted), false, true);
}