sebsto/kms-demo

Remove fixed IV example, may be mistakenly perpetuated by beginners

Closed this issue · 2 comments

obj = AES.new(keyPlain, AES.MODE_CBC, b'This is an IV123')

The other one with random IV below is preferable. In fact, one might want to totally take away IV generation from user's hands in such high-level crypto APIs...

iv = Random.new().read(AES.block_size)

Fixed with 9e11cfe

Thank you