decryptAesWithoutIv static method

String decryptAesWithoutIv({
  1. String key = r'Pi@aTom#$tech123',
  2. required String encoded,
})

Implementation

static String decryptAesWithoutIv({
  String key = r'Pi@aTom#$tech123',
  required String encoded,
}) {
  final keyUtf = Key.fromUtf8(key);

  final encrypter = Encrypter(AES(keyUtf, mode: AESMode.ecb));

  final decrypted = encrypter.decrypt64(encoded, iv: IV.fromUtf8(''));

  return decrypted;
}