Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
sakia
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
clients
python
sakia
Commits
763eecb6
Commit
763eecb6
authored
12 years ago
by
Donald Stufft
Browse files
Options
Downloads
Patches
Plain Diff
Add a link to Wikipedia for Nonce
parent
0c251ddf
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/secret.rst
+6
-6
6 additions, 6 deletions
docs/secret.rst
with
6 additions
and
6 deletions
docs/secret.rst
+
6
−
6
View file @
763eecb6
...
...
@@ -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.
d
ecrypt`
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.e
n
crypt`
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment