decryptString static method

String decryptString(
  1. String cipherText
)

Implementation

static String decryptString(String cipherText) {
  final encrypter = Encrypter(AES(Key.fromUtf8(_key), mode: AESMode.cbc));
  final decrypted = encrypter.decrypt64(cipherText, iv: IV.fromUtf8(_iv));

  return decrypted;
}