decrypted static method

Uint8List decrypted(
  1. Uint8List iv,
  2. Uint8List cipherText
)

Implementation

static Uint8List decrypted(Uint8List iv, Uint8List cipherText){
  final encrypter = enc.Encrypter(enc.AES(_key,mode: enc.AESMode.cbc));
  final decrypted = encrypter.decryptBytes(enc.Encrypted(cipherText),iv: enc.IV(iv
  ));
  return Uint8List.fromList(decrypted);
}