diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2024-02-01 21:33:48 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-02 03:33:48 +0000 |
commit | c7ec8a6eed603c2b20a320c4fd1357e33ae2c691 (patch) | |
tree | 8bb1db14e883e304ef033eca6a7b047fd6699d7b /docs | |
parent | c0c9ec8dbb74ad13be09687044dc4eb2182681d0 (diff) | |
download | pyca-cryptography-c7ec8a6eed603c2b20a320c4fd1357e33ae2c691.zip pyca-cryptography-c7ec8a6eed603c2b20a320c4fd1357e33ae2c691.tar.gz pyca-cryptography-c7ec8a6eed603c2b20a320c4fd1357e33ae2c691.tar.bz2 |
fix decrepit example (#10324)
* fix decrepit example
* Update docs/hazmat/decrepit/ciphers.rst
Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com>
---------
Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/hazmat/decrepit/ciphers.rst | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/hazmat/decrepit/ciphers.rst b/docs/hazmat/decrepit/ciphers.rst index 2f7b12f..b7a79e2 100644 --- a/docs/hazmat/decrepit/ciphers.rst +++ b/docs/hazmat/decrepit/ciphers.rst @@ -28,9 +28,10 @@ object along with the appropriate :mod:`~cryptography.hazmat.primitives.ciphers. .. doctest:: >>> import os - >>> from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes + >>> from cryptography.hazmat.decrepit.ciphers.algorithms import ARC4 + >>> from cryptography.hazmat.primitives.ciphers import Cipher, modes >>> key = os.urandom(16) - >>> algorithm = algorithms.ARC4(key) + >>> algorithm = ARC4(key) >>> cipher = Cipher(algorithm, mode=None) >>> encryptor = cipher.encryptor() >>> ct = encryptor.update(b"a secret message") |