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

Fix a typo in the SecretBox documentation

parent 98e3b5d9
No related branches found
No related tags found
No related merge requests found
......@@ -48,10 +48,10 @@ class SecretBox(encoding.Encodable, six.StringFixer, object):
ciphertext encoded with the encoder.
.. warning:: It is **VITALLY** important that the nonce is a nonce,
i.e. itis a number used only once for any given key. If you fail to
do this, you compromise the privacy of the messages encrypted. Give
your nonces a different prefix, or have one side use an odd counter
and one an even counter. Just make sure they are different.
i.e. it is a number used only once for any given key. If you fail
to do this, you compromise the privacy of the messages encrypted.
Give your nonces a different prefix, or have one side use an odd
counter and one an even counter. Just make sure they are different.
:param plaintext: [:class:`bytes`] The plaintext message to encrypt
:param nonce: [:class:`bytes`] The nonce to use in the encryption
......
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