fernet.rst: modernize password key derivation advice (#12409)

replace mention of bcrypt (which isn't supported by pyca/cryptography) with Argon2id
This commit is contained in:
David Buchanan 2025-02-06 14:30:50 +00:00 committed by GitHub
parent 9d2f41cfa2
commit 45da8087ab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -221,7 +221,8 @@ Using passwords with Fernet
It is possible to use passwords with Fernet. To do this, you need to run the
password through a key derivation function such as
:class:`~cryptography.hazmat.primitives.kdf.pbkdf2.PBKDF2HMAC`, bcrypt or
:class:`~cryptography.hazmat.primitives.kdf.pbkdf2.PBKDF2HMAC`,
:class:`~cryptography.hazmat.primitives.kdf.argon2.Argon2id` or
:class:`~cryptography.hazmat.primitives.kdf.scrypt.Scrypt`.
.. doctest::