From 885a730e4e9e39f6027e377b0f6785b317a1f013 Mon Sep 17 00:00:00 2001 From: Thomas P Date: Sun, 8 Aug 2021 21:07:54 +0200 Subject: DOC: Clarify RSA encoding and decoding depend on the cryptography package (#664) * DOC: Clarify RSA encoding and decoding depend on the cryptography package Followup to #208 * DOC: Add a reference to the cryptography section in the installation file Fixes missing reference in the previously edited file --- docs/installation.rst | 3 +++ docs/usage.rst | 2 ++ 2 files changed, 5 insertions(+) diff --git a/docs/installation.rst b/docs/installation.rst index 6da2ccd..925da97 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) ------------------------------------- diff --git a/docs/usage.rst b/docs/usage.rst index c5372af..2eacb96 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 -- cgit v1.2.1