2 ms·
Okay that would solve a lot. I hope he passes the entire text into his EncryptBlock method instead of just a block. I'm not sure, but even if it uses CBC inter
by lucb1e 13y ago
Okay that would solve a lot. I hope he passes the entire text into his EncryptBlock method instead of just a block.
I'm not sure, but even if it uses CBC internally, the encryptions might still be broken by comparing the first block of each encrypted message, if messages are encrypted with the same password (which is very likely). I've always heard that the IV may never be static.
- danbruc 13y agoHe uses a unique initialization vector obtained from a cryptographically secure random number generator for each message, so there is no obvious issue with the first block, too. UPDATE: Not entirely correct, see https://news.ycombinator.com/item?id=7400183 https://news.ycombinator.com/item?id=7400183.