Skip to content

Commit

Permalink
update usage
Browse files Browse the repository at this point in the history
  • Loading branch information
jpadilla committed Oct 13, 2024
1 parent f2df5b6 commit 3065fdf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ Encoding & Decoding Tokens with EdDSA (Ed25519)
EdDSA encoding and decoding require the ``cryptography`` module. See :ref:`installation_cryptography`.

.. code-block:: pycon
>>> import jwt
>>> private_key = "-----BEGIN PRIVATE KEY-----\nMC4CAQAwBQYDK2VwBCIEIPtUxyxlhjOWetjIYmc98dmB2GxpeaMPP64qBhZmG13r\n-----END PRIVATE KEY-----\n"
>>> public_key = "-----BEGIN PUBLIC KEY-----\nMCowBQYDK2VwAyEA7p4c1IU6aA65FWn6YZ+Bya5dRbfd4P6d4a6H0u9+gCg=\n-----END PUBLIC KEY-----\n"
Expand All @@ -73,7 +74,7 @@ EdDSA encoding and decoding require the ``cryptography`` module. See :ref:`insta
{'some': 'payload'}
Encoding & Decoding Tokens with ES256 (ECDSA)
-------------------------------------------
---------------------------------------------

ECDSA encoding and decoding require the ``cryptography`` module. See :ref:`installation_cryptography`.

Expand Down

0 comments on commit 3065fdf

Please sign in to comment.