PointyCastle / pointycastle

Moved into the Bouncy Castle project: https://github.com/bcgit/pc-dart
MIT License
270 stars 76 forks source link

AES-CBC examples bug report #219

Open ZhuQiaochu opened 4 years ago

ZhuQiaochu commented 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.