From af6f9900647c36224130270dab385d323ff7534d Mon Sep 17 00:00:00 2001 From: Chris Wolfe Date: Wed, 18 Oct 2017 14:23:53 -0500 Subject: Add Multifernet.rotate method (#3979) * add rotate method * add some more tests for the failure modes * start adding some documentation for the rotate method * operate on a single token at a time, leave lists to the caller * add versionadded add versionadded, drop rotate from class doctest * give rotate a doctest * single level, not aligned * add changelog for mf.rotate * show that, once rotated, the old fernet instance can no longer decrypt the token * add the instead of just the how * update docs to reflect removal of ttl from rotate * update tests * refactor internal methods so that we can extract the timestamp * implement rotate * update wordlist (case sensitive?) * lints * consistent naming * get_token_data/get_unverified_token_data -> better name * doc changes * use the static method, do not treat as imethod * move up to MultiFernet docs * add to authors * alter wording * monkeypatch time to make it less possible for the test to pass simply due to calls occuring in less than one second * set the time after encryption to make sure that the time is preserved as part of re-encryption --- AUTHORS.rst | 1 + 1 file changed, 1 insertion(+) (limited to 'AUTHORS.rst') diff --git a/AUTHORS.rst b/AUTHORS.rst index 4444bf55..60f5de11 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -37,3 +37,4 @@ PGP key fingerprints are enclosed in parentheses. * Ofek Lev (FFB6 B92B 30B1 7848 546E 9912 972F E913 DAD5 A46E) * Erik Daguerre * Aviv Palivoda +* Chris Wolfe -- cgit v1.2.3