You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, thank you for your great work. I'm using it extensively on my current deep-dive journey into cryptography.
In the python examples for AES GCM encryption/decryption, in the print() of the encrypted message, you call the "nonce" an "IV", which are different things that have different attributes. So if I don't get it wrong, "aesIV" should be renamed to "aesNonce" in this code sample:
From what I've learned so far, when talking about an IV it is important that it is random - and, at least in many scenarios, it should be used only once per key, too - while when talking about a nonce the randomness is not the important part, but it is important that it is never, ever re-used.
Hello Svetlin!
First of all, thank you for your great work. I'm using it extensively on my current deep-dive journey into cryptography.
In the python examples for AES GCM encryption/decryption, in the print() of the encrypted message, you call the "nonce" an "IV", which are different things that have different attributes. So if I don't get it wrong, "aesIV" should be renamed to "aesNonce" in this code sample:
Practical-Cryptography-for-Developers-Book/symmetric-key-ciphers/aes-encrypt-decrypt-examples.md
Line 153 in a05a517
From what I've learned so far, when talking about an
IV
it is important that it is random - and, at least in many scenarios, it should be used only once per key, too - while when talking about anonce
the randomness is not the important part, but it is important that it is never, ever re-used.Source (for example): https://crypto.stackexchange.com/questions/16000/difference-between-a-nonce-and-iv
Greetings from Germany, and stay motivated and healthy!
Daniel Albuschat
The text was updated successfully, but these errors were encountered: