From 808eea1d4f8977ea18949aa38c1e34a3d092080d Mon Sep 17 00:00:00 2001 From: Thomas P Date: Wed, 16 Jun 2021 10:48:20 +0200 Subject: [PATCH 1/2] DOC: Clarify RSA encoding and decoding depend on the cryptography package Followup to #208 --- docs/usage.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/usage.rst b/docs/usage.rst index c5372af0..2eacb969 100644 --- a/docs/usage.rst +++ b/docs/usage.rst @@ -17,6 +17,8 @@ Encoding & Decoding Tokens with HS256 Encoding & Decoding Tokens with RS256 (RSA) ------------------------------------------- +RSA encoding and decoding require the ``cryptography`` module. See :ref:`installation_cryptography`. + .. code-block:: pycon >>> import jwt From 679881fb609e1431925b032690cf7fc0ab39c173 Mon Sep 17 00:00:00 2001 From: Thomas P Date: Wed, 16 Jun 2021 10:50:16 +0200 Subject: [PATCH 2/2] DOC: Add a reference to the cryptography section in the installation file Fixes missing reference in the previously edited file --- docs/installation.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/installation.rst b/docs/installation.rst index 6da2ccdf..925da97c 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -7,6 +7,9 @@ You can install ``PyJWT`` with ``pip``: $ pip install pyjwt + +.. _installation_cryptography + Cryptographic Dependencies (Optional) -------------------------------------