Skip to content
Snippets Groups Projects
Commit 763eecb6 authored by Donald Stufft's avatar Donald Stufft
Browse files

Add a link to Wikipedia for Nonce

parent 0c251ddf
No related branches found
No related tags found
No related merge requests found
......@@ -56,12 +56,12 @@ decrypt the data, or encrypt new data.
Nonce
~~~~~
The 24 bytes nonce (Number used once) given to :meth:`~nacl.secret.SecretBox.encrypt`
and :meth:`~nacl.secret.SecretBox.decrypt` must **NEVER** be reused for a
particular key. Reusing the nonce means an attacker will have enough information
to recover your secret key and encrypt or decrypt arbitrary messages. A nonce
is not considered secret and may be freely transmitted or stored in plaintext
alongside the ciphertext.
The 24 bytes nonce (`Number used once <https://en.wikipedia.org/wiki/Cryptographic_nonce>`_)
given to :meth:`~nacl.secret.SecretBox.encrypt` and :meth:`~nacl.secret.SecretBox.decrypt`
must **NEVER** be reused for a particular key. Reusing the nonce means an
attacker will have enough information to recover your secret key and encrypt or
decrypt arbitrary messages. A nonce is not considered secret and may be freely
transmitted or stored in plaintext alongside the ciphertext.
A nonce does not need to be random, nor does the method of generating them need
to be secret. A nonce could simply be a counter incremented with each message
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment