<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/cryptography.git/tests/test_fernet.py, branch github-actions-windows</title>
<subtitle>github.com: pyca/cryptography.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/cryptography.git/'/>
<entry>
<title>Add support for extracting timestamp from a Fernet token (#4229)</title>
<updated>2018-05-12T15:57:32+00:00</updated>
<author>
<name>Paul Kehrer</name>
<email>paul.l.kehrer@gmail.com</email>
</author>
<published>2018-05-12T15:57:32+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/cryptography.git/commit/?id=36ad98fd5e4b7358dc2aa903b6d51569bf19c5f8'/>
<id>36ad98fd5e4b7358dc2aa903b6d51569bf19c5f8</id>
<content type='text'>
* 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&amp;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
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* 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&amp;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
</pre>
</div>
</content>
</entry>
<entry>
<title>Add Multifernet.rotate method (#3979)</title>
<updated>2017-10-18T19:23:53+00:00</updated>
<author>
<name>Chris Wolfe</name>
<email>chriswwolfe@gmail.com</email>
</author>
<published>2017-10-18T19:23:53+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/cryptography.git/commit/?id=af6f9900647c36224130270dab385d323ff7534d'/>
<id>af6f9900647c36224130270dab385d323ff7534d</id>
<content type='text'>
* 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 -&gt; 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
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* 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 -&gt; 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
</pre>
</div>
</content>
</entry>
<entry>
<title>pass bytes to modes/algorithms like we should</title>
<updated>2016-03-07T13:11:51+00:00</updated>
<author>
<name>Paul Kehrer</name>
<email>paul.l.kehrer@gmail.com</email>
</author>
<published>2016-03-07T13:11:51+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/cryptography.git/commit/?id=4fc597d9990bdf17f714ae1a3a3f759e4039e4a9'/>
<id>4fc597d9990bdf17f714ae1a3a3f759e4039e4a9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fernet fix: ignore the timestamp entirely when no ttl is set</title>
<updated>2016-01-21T14:54:59+00:00</updated>
<author>
<name>Paul Kehrer</name>
<email>paul.l.kehrer@gmail.com</email>
</author>
<published>2016-01-21T14:54:59+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/cryptography.git/commit/?id=a418e96e08537e77b86c7eff8975e0c76b251797'/>
<id>a418e96e08537e77b86c7eff8975e0c76b251797</id>
<content type='text'>
Previously if the token claimed to have been generated more than 60
seconds in the future we would raise InvalidToken even if ttl was set
to None.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously if the token claimed to have been generated more than 60
seconds in the future we would raise InvalidToken even if ttl was set
to None.
</pre>
</div>
</content>
</entry>
<entry>
<title>Replace the remaining occurrences of six.u with the u prefix</title>
<updated>2015-04-29T13:11:00+00:00</updated>
<author>
<name>Eeshan Garg</name>
<email>jerryguitarist@gmail.com</email>
</author>
<published>2015-04-29T13:11:00+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/cryptography.git/commit/?id=f12341503136d1755b30aeb13f2ae3e9864199fc'/>
<id>f12341503136d1755b30aeb13f2ae3e9864199fc</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>alter vector file loader to support passing read mode</title>
<updated>2014-11-27T18:03:22+00:00</updated>
<author>
<name>Paul Kehrer</name>
<email>paul.l.kehrer@gmail.com</email>
</author>
<published>2014-11-27T17:50:46+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/cryptography.git/commit/?id=fdae070f8bcbeb4902114460f8b37b62ea82df53'/>
<id>fdae070f8bcbeb4902114460f8b37b62ea82df53</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Update the license header for every source file, as well as the documentation.</title>
<updated>2014-11-16T17:08:42+00:00</updated>
<author>
<name>Alex Gaynor</name>
<email>alex.gaynor@gmail.com</email>
</author>
<published>2014-11-16T17:08:42+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/cryptography.git/commit/?id=5951f46be60095a74546b318432417e51bfe0aab'/>
<id>5951f46be60095a74546b318432417e51bfe0aab</id>
<content type='text'>
Fixes #1209
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes #1209
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixed #1436 -- mark the multifernet tests as requiring the backends they need</title>
<updated>2014-10-24T14:50:30+00:00</updated>
<author>
<name>Alex Gaynor</name>
<email>alex.gaynor@gmail.com</email>
</author>
<published>2014-10-24T14:50:30+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/cryptography.git/commit/?id=e6ac60265eecb86b11761c6695172924f36a1ea4'/>
<id>e6ac60265eecb86b11761c6695172924f36a1ea4</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Change how we represented that a test requires a backend.</title>
<updated>2014-10-23T18:01:25+00:00</updated>
<author>
<name>Alex Gaynor</name>
<email>alex.gaynor@gmail.com</email>
</author>
<published>2014-10-23T18:01:25+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/cryptography.git/commit/?id=7aab8b4ae4f5ab1710a985551c4105d608f5b852'/>
<id>7aab8b4ae4f5ab1710a985551c4105d608f5b852</id>
<content type='text'>
This way is more extensible and requires less maintaince
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This way is more extensible and requires less maintaince
</pre>
</div>
</content>
</entry>
<entry>
<title>flake8 + cleanup</title>
<updated>2014-10-20T21:34:35+00:00</updated>
<author>
<name>Alex Gaynor</name>
<email>alex.gaynor@gmail.com</email>
</author>
<published>2014-10-20T21:34:35+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/cryptography.git/commit/?id=41b33b70d3f9c937d80c264627d1195692a17863'/>
<id>41b33b70d3f9c937d80c264627d1195692a17863</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
