diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2013-12-20 13:26:12 -0800 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2013-12-20 13:26:12 -0800 |
commit | 32dc4e4e9f3036f04598134369af50fd70143dae (patch) | |
tree | 3fe2ecadf5fc326957579e80aaedf30270e59c68 | |
parent | 3ef458ac7dc021378d8ca14bfcf654c0d51d9a0d (diff) | |
download | cryptography-32dc4e4e9f3036f04598134369af50fd70143dae.tar.gz cryptography-32dc4e4e9f3036f04598134369af50fd70143dae.tar.bz2 cryptography-32dc4e4e9f3036f04598134369af50fd70143dae.zip |
Make into a warning as suggested by @dstufft
-rw-r--r-- | docs/fernet.rst | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/docs/fernet.rst b/docs/fernet.rst index 4e618f59..68184b3a 100644 --- a/docs/fernet.rst +++ b/docs/fernet.rst @@ -39,10 +39,13 @@ using it cannot be manipulated or read without the key. :param bytes plaintext: The message you would like to encrypt. :returns bytes: A secure message which cannot be read or altered without the key. It is URL-safe base64-encoded. This is - refered to as a "Fernet token". Note that this contains - the current time when it was generated in *plaintext*, - the time a message was created will therefore be - visible to a possible attacker. + refered to as a "Fernet token". + + .. warning:: + + The encrypted message contains the current time when it was + generated in *plaintext*, the time a message was created will + therefore be visible to a possible attacker. .. method:: decrypt(token, ttl=None) |