Skip to main content

Python chryptography keys implemented on to the PKCS11 interface

Project description

cryptography is a package which provides cryptographic recipes and primitives to Python developers. Their goal is for it to be your “cryptographic standard library”.

This library uses PyKCS11 to implement comunication to the PKCS11 device (smartcard,…). As PKCS11 devices need an open session to work with them, this library provides context managers to execute tasks provided by pyca/cryptography. PKCS11KeySession is the context manager that will facilitate the use of implemented keys.

Context managers take information to connect to the PKCS11 device (library, token label and key label, if there are more that one private keys on a token). Within the with statement the cryptographic operations with the key are made.

The PKCS11KeySession context meneager will return private key object of the type referenced by library, token label and in some cases key label written on the PKCS11 device. From private key public key can be retrieved like in pyca/cryptography and also certificates (and even CA chain) (this is the extension PKCS11 device tokens can provide).

This library provides keys for EC and RSA keys which are most comonly used keys on PKCS11 devices.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pkcs11_cryptography_keys-0.0.3.tar.gz (27.8 kB view details)

Uploaded Source

Built Distribution

PKCS11_cryptography_keys-0.0.3-py3-none-any.whl (48.9 kB view details)

Uploaded Python 3

File details

Details for the file pkcs11_cryptography_keys-0.0.3.tar.gz.

File metadata

File hashes

Hashes for pkcs11_cryptography_keys-0.0.3.tar.gz
Algorithm Hash digest
SHA256 c1898210fcdae85c09407ff4e832f7996719785cc068b07445ccf39723d2c24c
MD5 4fac07c78b8a94ed51313d4226ad5e48
BLAKE2b-256 14c99b982699a3bfb1fe7cfabef58eaf79fde105596eb6fd1dc80834ef75f219

See more details on using hashes here.

File details

Details for the file PKCS11_cryptography_keys-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for PKCS11_cryptography_keys-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f928cec5d29360c3e52260cd45682732fb5630409a417ee49af4a5c0f32f4e1a
MD5 4849ddb1d4f2d020ab192f26f2e86eb4
BLAKE2b-256 9488fc6ef027b1e704525f7c7dd75e720ac88f71cf2ba79f4510bd17b1775d08

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page