Closed xuanzhui closed 7 years ago
The hazmat module contains primitives designed to be composable. Not every consumer wants the same padding and some use cases don't want it at all. You can trivially add padding via the padding module but as always unless you're building against a legacy spec or doing bulk encryption I strongly suggest just using fernet.
When I try to encrypt a message that less than 16bytes, I get below error:
The full code is:
which is almost the same from the doc.
Why not auto pad using PKCS#7?