You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, when I run the below code it causes error: Invalid argument(s): Initialization vector must be the same length as block size
but if I replace 32 with 16 in both key and iv it gives me result without error. why is that?
final plainText = data.toString();
final key = Key.fromLength(32);
final iv = IV.fromLength(32);
final aesEncrypter = Encrypter(AES(key, mode: AESMode.cbc));
final encryptedJson = aesEncrypter.encrypt(plainText, iv: iv);
Hi, when I run the below code it causes error: Invalid argument(s): Initialization vector must be the same length as block size
but if I replace 32 with 16 in both key and iv it gives me result without error. why is that?
I'm using encrypt: ^5.0.3 version
full error log
The text was updated successfully, but these errors were encountered: