<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/cryptography.git/src/cryptography/fernet.py, branch coverage-nox</title>
<subtitle>github.com: pyca/cryptography.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cryptography.git/'/>
<entry>
<title>Use from __future__ import annotations everywhere (#8643)</title>
<updated>2023-03-30T21:46:16+00:00</updated>
<author>
<name>Alex Gaynor</name>
<email>alex.gaynor@gmail.com</email>
</author>
<published>2023-03-30T21:46:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cryptography.git/commit/?id=394ae30408f4286bddac211afe67cbdcb545dcac'/>
<id>394ae30408f4286bddac211afe67cbdcb545dcac</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Annotate a few more functions (#7876)</title>
<updated>2022-12-04T22:40:34+00:00</updated>
<author>
<name>Alex Gaynor</name>
<email>alex.gaynor@gmail.com</email>
</author>
<published>2022-12-04T22:40:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cryptography.git/commit/?id=1e9513ec7cbae7b9f89f66394b1397c9c07a427e'/>
<id>1e9513ec7cbae7b9f89f66394b1397c9c07a427e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Allow Fernet decryption to accept string tokens (#7116)</title>
<updated>2022-04-29T22:27:47+00:00</updated>
<author>
<name>Robert Coup</name>
<email>robert@coup.net.nz</email>
</author>
<published>2022-04-29T22:27:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cryptography.git/commit/?id=a2a9109251309d23dbb1bcf7d7aac0bd5b4021d5'/>
<id>a2a9109251309d23dbb1bcf7d7aac0bd5b4021d5</id>
<content type='text'>
* tests: better testid generation for fernet vectors

Use the vector filename and array index for the pytest id rather than a
concatenation of the vector content.

eg: `tests/test_fernet.py::TestFernet::test_invalid[invalid.json:2]`

* (Multi)Fernet: allow str tokens for decryption

Remove some developer friction by allowing string tokens to be passed to
Fernet decryption methods. Because a valid token as generated by
`Fernet.encrypt()` is url-safe base64-encoded, a non-ASCII token is
definitely invalid.

The stdlib base64 function already accepts and checks ASCII str values
so delegate to that.

* Kick CI</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* tests: better testid generation for fernet vectors

Use the vector filename and array index for the pytest id rather than a
concatenation of the vector content.

eg: `tests/test_fernet.py::TestFernet::test_invalid[invalid.json:2]`

* (Multi)Fernet: allow str tokens for decryption

Remove some developer friction by allowing string tokens to be passed to
Fernet decryption methods. Because a valid token as generated by
`Fernet.encrypt()` is url-safe base64-encoded, a non-ASCII token is
definitely invalid.

The stdlib base64 function already accepts and checks ASCII str values
so delegate to that.

* Kick CI</pre>
</div>
</content>
</entry>
<entry>
<title>Remove explicit subclassing of object now that all classes are new-style (#6830)</title>
<updated>2022-01-30T16:29:24+00:00</updated>
<author>
<name>Alex Gaynor</name>
<email>alex.gaynor@gmail.com</email>
</author>
<published>2022-01-30T16:29:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cryptography.git/commit/?id=02783d22972f1734e0728b4891f4e52e48913b0d'/>
<id>02783d22972f1734e0728b4891f4e52e48913b0d</id>
<content type='text'>
As someone who first with Python in 2.4 or so, this habit is going to be hard to break.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
As someone who first with Python in 2.4 or so, this habit is going to be hard to break.</pre>
</div>
</content>
</entry>
<entry>
<title>Swap out the struct module for int methods (#6774)</title>
<updated>2021-12-30T14:30:24+00:00</updated>
<author>
<name>Alex Gaynor</name>
<email>alex.gaynor@gmail.com</email>
</author>
<published>2021-12-30T14:30:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cryptography.git/commit/?id=f951323e7811fd9cb26c0fa273a1e3caec6cc710'/>
<id>f951323e7811fd9cb26c0fa273a1e3caec6cc710</id>
<content type='text'>
If nothing else these are mypy friendly</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If nothing else these are mypy friendly</pre>
</div>
</content>
</entry>
<entry>
<title>Informative error on incompatible Fernet key (#6768)</title>
<updated>2021-12-28T00:04:54+00:00</updated>
<author>
<name>Bar Harel</name>
<email>bzvi7919@gmail.com</email>
</author>
<published>2021-12-28T00:04:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cryptography.git/commit/?id=d97bfeda9f335d08a8a79a89d2b39f95ed3a5c4b'/>
<id>d97bfeda9f335d08a8a79a89d2b39f95ed3a5c4b</id>
<content type='text'>
* Informative error

* tests + prevent key logging on error

* flake8

* black still downloading...</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Informative error

* tests + prevent key logging on error

* flake8

* black still downloading...</pre>
</div>
</content>
</entry>
<entry>
<title>Final polish on removing backends from places they aren't required (#6644)</title>
<updated>2021-11-21T21:01:31+00:00</updated>
<author>
<name>Alex Gaynor</name>
<email>alex.gaynor@gmail.com</email>
</author>
<published>2021-11-21T21:01:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cryptography.git/commit/?id=d09e1eda2bd4f489c5fc7078b58cabb0aa3a7aed'/>
<id>d09e1eda2bd4f489c5fc7078b58cabb0aa3a7aed</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Update annotation for key (#5951)</title>
<updated>2021-04-03T23:02:22+00:00</updated>
<author>
<name>Sam Bull</name>
<email>aa6bs0@sambull.org</email>
</author>
<published>2021-04-03T23:02:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cryptography.git/commit/?id=2839b4b6a2e6c98023748ebccf58649afe6038e4'/>
<id>2839b4b6a2e6c98023748ebccf58649afe6038e4</id>
<content type='text'>
* Update annotation for key

* Update fernet.py

* Update fernet.py</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Update annotation for key

* Update fernet.py

* Update fernet.py</pre>
</div>
</content>
</entry>
<entry>
<title>more typing (#5887)</title>
<updated>2021-03-02T17:48:03+00:00</updated>
<author>
<name>Paul Kehrer</name>
<email>paul.l.kehrer@gmail.com</email>
</author>
<published>2021-03-02T17:48:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cryptography.git/commit/?id=032a7f3cdca5207d3b1e2a5eed14897d88f78378'/>
<id>032a7f3cdca5207d3b1e2a5eed14897d88f78378</id>
<content type='text'>
* backend typing for twofactor package and more otp work

* even more typing

* style fixes

* no generic typing for _get_backend

* remove unneeded typing</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* backend typing for twofactor package and more otp work

* even more typing

* style fixes

* no generic typing for _get_backend

* remove unneeded typing</pre>
</div>
</content>
</entry>
<entry>
<title>Apply type annotations to x509 ct and ocsp (#5712)</title>
<updated>2021-01-30T22:44:14+00:00</updated>
<author>
<name>Alex Gaynor</name>
<email>alex.gaynor@gmail.com</email>
</author>
<published>2021-01-30T22:44:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cryptography.git/commit/?id=f16bff2cbd2855f0becb27724334e4bdb0679247'/>
<id>f16bff2cbd2855f0becb27724334e4bdb0679247</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
