decryptFromBase64 method

String decryptFromBase64({
  1. required String text,
  2. String? key,
  3. String? iv,
})

Implementation

String decryptFromBase64({
  required String text,
  String? key,
  String? iv,
}) {
  iv ??= defaultIv;
  key ??= defaultKey;
  final encrypter = Encrypter(AES(Key.fromUtf8(key)));
  return encrypter.decrypt64(text, iv: IV.fromBase64(iv));
}