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
af424262
Commit
af424262
authored
11 years ago
by
Donald Stufft
Browse files
Options
Downloads
Plain Diff
Merge pull request
#46
from dstufft/fix-code-block
Use code-block
parents
ec5ad83a
fa507b4a
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
docs/encoding.rst
+3
-3
3 additions, 3 deletions
docs/encoding.rst
docs/public.rst
+1
-1
1 addition, 1 deletion
docs/public.rst
docs/secret.rst
+1
-1
1 addition, 1 deletion
docs/secret.rst
docs/signing.rst
+2
-2
2 additions, 2 deletions
docs/signing.rst
with
7 additions
and
7 deletions
docs/encoding.rst
+
3
−
3
View file @
af424262
...
...
@@ -7,13 +7,13 @@ are typically passed as a keyword argument `encoder` to various methods.
For example you can generate a signing key and encode it in hex with:
.. code:: python
.. code
-block
:: python
hex_key = nacl.signing.SigningKey.generate().encode(encoder=nacl.encoding.HexEncoder)
Then you can later decode it from hex:
.. code:: python
.. code
-block
:: python
signing_key = nacl.signing.SigningKey(hex_key, encoder=nacl.encoding.HexEncoder)
...
...
@@ -43,7 +43,7 @@ Defining your own Encoder
Defining your own encoder is easy. Each encoder is simply a class with 2 static
methods. For example here is the hex encoder:
.. code:: python
.. code
-block
:: python
import binascii
...
...
This diff is collapsed.
Click to expand it.
docs/public.rst
+
1
−
1
View file @
af424262
...
...
@@ -37,7 +37,7 @@ generated from both pairing of keys, so given two keypairs belonging to alice
(pkalice, skalice) and bob(pkbob, skbob), the key derived from (pkalice, skbob)
with equal that from (pkbob, skalice). This is how the system works:
.. code:: python
.. code
-block
:: python
import nacl.utils
from nacl.public import PrivateKey, Box
...
...
This diff is collapsed.
Click to expand it.
docs/secret.rst
+
1
−
1
View file @
af424262
...
...
@@ -13,7 +13,7 @@ other than the length.
Example
-------
.. code:: python
.. code
-block
:: python
import nacl.secret
import nacl.utils
...
...
This diff is collapsed.
Click to expand it.
docs/signing.rst
+
2
−
2
View file @
af424262
...
...
@@ -17,7 +17,7 @@ Example
Signer's perspective (:class:`~nacl.signing.SigningKey`)
.. code:: python
.. code
-block
:: python
import nacl.encoding
import nacl.signing
...
...
@@ -36,7 +36,7 @@ Signer's perspective (:class:`~nacl.signing.SigningKey`)
Verifier's perspective (:class:`~nacl.signing.VerifyKey`)
.. code:: python
.. code
-block
:: python
import nacl.signing
...
...
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