by guan · 14y ago · 0 comments
So in that sense, just like it's good to have a different or random salt with each hash, you'd want a differend (random) IV for each session.
CBC-mode's IV really does need to be unpredictable by anyone who can influence the plaintext. Otherwise, you get things like this: http://www.youtube.com/watch?v=BTqAIDVUvrU
One obvious option that might work (I'm not a cryptography researcher, so ignore me) is that you could encrypt the sequenced IV to get a secure psuedo-random block.