aboutsummaryrefslogtreecommitdiffstats
path: root/CHANGELOG.rst
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2018-05-12 11:57:32 -0400
committerAlex Gaynor <alex.gaynor@gmail.com>2018-05-12 11:57:32 -0400
commit36ad98fd5e4b7358dc2aa903b6d51569bf19c5f8 (patch)
treeb176b10478a5cfe302ca3ed7193fda5964c16d8b /CHANGELOG.rst
parent33ae3cea990b307eafaa5f52232eba8315fd05fe (diff)
downloadcryptography-36ad98fd5e4b7358dc2aa903b6d51569bf19c5f8.tar.gz
cryptography-36ad98fd5e4b7358dc2aa903b6d51569bf19c5f8.tar.bz2
cryptography-36ad98fd5e4b7358dc2aa903b6d51569bf19c5f8.zip
Add support for extracting timestamp from a Fernet token (#4229)
* Add API for retrieving the seconds-to-expiry for the token, given a TTL. * Process PR feedback: * Do compute the TTL, but just the age of the token. The caller can decided what to do next. * Factored out the HMAC signature verification to a separate function. * Fixed a copy&paste mistake in the test cases * Tests cleanup. * `struct` no longer needed * Document `def age()` * typo in `age()` documentation * token, not data * remove test for TTL expiry that is already covered by the parameterized `test_invalid()`. * let's call this extract_timestamp and just return timestamp * review comments * it's UNIX I know this
Diffstat (limited to 'CHANGELOG.rst')
-rw-r--r--CHANGELOG.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 6ab6b044..4cabaf7f 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -8,6 +8,9 @@ Changelog
.. note:: This version is not yet released and is under active development.
+* Added :meth:`~cryptography.fernet.Fernet.extract_timestamp` to get the
+ authenticated timestamp of a :doc:`Fernet </fernet>` token.
+
.. _v2-2-2:
2.2.2 - 2018-03-27