aboutsummaryrefslogtreecommitdiffstats
path: root/docs/fernet.rst
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2013-12-20 13:35:57 -0800
committerAlex Gaynor <alex.gaynor@gmail.com>2013-12-20 13:35:57 -0800
commit719eb6a412b5d3eab3ca84a9d4e8af76955bcbcc (patch)
tree1fe17b4bd4e396e2663299c1d04a48fad0ae28f7 /docs/fernet.rst
parent32dc4e4e9f3036f04598134369af50fd70143dae (diff)
downloadcryptography-719eb6a412b5d3eab3ca84a9d4e8af76955bcbcc.tar.gz
cryptography-719eb6a412b5d3eab3ca84a9d4e8af76955bcbcc.tar.bz2
cryptography-719eb6a412b5d3eab3ca84a9d4e8af76955bcbcc.zip
Linkify this
Diffstat (limited to 'docs/fernet.rst')
-rw-r--r--docs/fernet.rst15
1 files changed, 9 insertions, 6 deletions
diff --git a/docs/fernet.rst b/docs/fernet.rst
index 68184b3a..2fe2b860 100644
--- a/docs/fernet.rst
+++ b/docs/fernet.rst
@@ -41,7 +41,7 @@ using it cannot be manipulated or read without the key.
without the key. It is URL-safe base64-encoded. This is
refered to as a "Fernet token".
- .. warning::
+ .. note::
The encrypted message contains the current time when it was
generated in *plaintext*, the time a message was created will
@@ -58,11 +58,14 @@ using it cannot be manipulated or read without the key.
provided (or is ``None``), the age of the message is
not considered.
:returns bytes: The original plaintext.
- :raises InvalidToken: If the ``token`` is in any way invalid, this
- exception is raised. A token may be invalid for a
- number of reasons: it is older than the ``ttl``,
- it is malformed, or it does not have a valid
- signature.
+ :raises cryptography.fernet.InvalidToken: If the ``token`` is in any
+ way invalid, this exception
+ is raised. A token may be
+ invalid for a number of
+ reasons: it is older than the
+ ``ttl``, it is malformed, or
+ it does not have a valid
+ signature.
.. class:: InvalidToken