代码 final jsonString = await rootBundle.loadString('assets/anci.txt.aes');
final key = Key.fromUtf8('12345678901234567890212345678923');
final iv = IV.fromLength(16);
final encrypter = Encrypter(AES(key));
//final encrypted = encrypter.encrypt(jsonString, iv: iv);
final decrypted = encrypter.decrypt64(jsonString, iv: iv);
print(decrypted);
我已经使用这个包加密了文件,然后我把它放在资产中从资产文件夹解密,但我无法弄清楚。
<块引用>我收到此错误
`FormatException: Invalid character (at character 1024)
`