Skip to content
This repository has been archived by the owner on Dec 23, 2020. It is now read-only.

AES-CBC examples bug report #219

Open
ZhuQiaochu opened this issue Dec 25, 2019 · 0 comments
Open

AES-CBC examples bug report #219

ZhuQiaochu opened this issue Dec 25, 2019 · 0 comments

Comments

@ZhuQiaochu
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant