cryptography
cryptography copied to clipboard
cryptography is a package designed to expose cryptographic primitives and recipes to Python developers.
Working with PKCS12 export, I noticed that PKCS12 files created by `cryptography` version 41.0.4 always use a MAC iteration count of 1. Output from `openssl pkcs12 -info` of a file...
The binary wheels on PyPI currently ship with a shared object compiled using Rust which seems to have some external dependencies: https://github.com/pyca/cryptography/blob/main/src/rust/Cargo.lock For now, the corresponding packages including their version...
This is a tie-together for Cryptography's side of the discussions in https://github.com/google/wycheproof/issues/90 and https://bugs.chromium.org/p/boringssl/issues/detail?id=614. ## Status quo The current `ChaCha20` API in Cryptography is defined as follows: ```python algorithms.ChaCha20(key, nonce)...
Hello all, We've been doing some profiling on our application hotspots, and this recently led us to our usage of `cryptography.Fernet`. One of our Engineers noticed that an alternative implementation...
close #8980
Traceback (most recent call last): File "Z:\Buskie\Encryptor\main.py", line 3, in from cryptography.hazmat.primitives import hashes File "C:\Users\abins\AppData\Local\Programs\Python\Python39\lib\site-packages\cryptography\hazmat\primitives\hashes.py", line 9, in from cryptography.hazmat.bindings._rust import openssl as rust_openssl ImportError: DLL load failed while...
from cryptography.hazmat.bindings._rust import exceptions as rust_exceptions ImportError: DLL load failed while importing _rust: The specified procedure could not be found.
I am seeing this error on my M1: `~/cryptography/hazmat/_oid.py:7: Evaluation error PanicException: Python API call failed` OS: M1 Mac python version: 3.10 paramiko version : 3.4.0 Mode of installation: pip...
Hello @alex @reaperhulk, this ticket is to re-open a discussion on the possibility to add binding for SSL_CTX_set1_curves_list and SSL_CTX_set1_groups_list (https://github.com/pyca/cryptography/issues/4980, https://github.com/pyca/cryptography/issues/9562) At the moment a python application built on...
The following code works with cryptography 41.0.7 and earlier, and fails with 42.0.0 and later: ``` from cryptography.hazmat.primitives.serialization import load_pem_public_key key = b"""-----BEGIN PUBLIC KEY----- MIICJTCCARcGCSqGSIb3DQEDATCCAQgCggEBAP//////////yQ/aoiFowjTExmKL gNwc0SkCTgiKZ8x0Agu+pjsTmyJRSgh5jjQE3e+VGbPNOkMbMCsKbfJfFDdP4TVt bVHCReSFtXZiXn7G9ExC6aY37WsL/1y29Aa37e44a/taiZ+lrp8kEXxLH+ZJKGZR 7ORbPcIAfLihY78FmNpINhxV05ppFj+o/STPX4NlXSPco62WHGLzViCFUrue1SkH cJaWbWcMNU5KvJgE8XRsCMoYIXwykF5GLjbOO+OedywYDoYDmyeDouwHoo+1xV3w...