Open ZhuQiaochu opened 4 years ago
tutorials/examples/aes-cbc-registry.dart
line 331
// Encrypt (note must ALWAYS pad to 128-bit block size for AES) .. pad(utf8.encode(textToEncrypt), 128));
I think this should be
pad(utf8.encode(textToEncrypt), 16));
128 bit = 16 byte
Many thanks for your code.
tutorials/examples/aes-cbc-registry.dart
line 331
// Encrypt (note must ALWAYS pad to 128-bit block size for AES) .. pad(utf8.encode(textToEncrypt), 128));
I think this should be
pad(utf8.encode(textToEncrypt), 16));
128 bit = 16 byte
Many thanks for your code.