Enter a description for this Unimatrix package
Project description
Unimatrix Crypto
A Python library that provides abstraction around various primitives for cryptographic operations.
Supported cryptographic implementations are:
- RSA PKCS1.5/SHA256
Supported key providers are:
- Local
- Google Cloud KMS
Installation
pip install unimatrix.ext.crypto
Usage
When using unimatrix.ext.crypto
with Google Cloud KMS, the
GOOGLE_APPLICATION_CREDENTIALS
environment variable needs
to be provided, pointing to your service account JSON
credentials.
import os
from unimatrix.ext.crypto.lib.google import Signer
signer = Signer(resource_id="your/kms/key/resource/id")
some_data_to_sign = os.urandom(256)
sig = signer.sign(some_data_to_sign)
print(sig.verify(signer.public, some_data_to_sign))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for unimatrix.ext.crypto-0.2.13.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 461e647cea81cbe1da1c6a5480c8f78f456837e056c41b07ccb075d9ffc6b91d |
|
MD5 | 2c4e43dda11410d01c43858f4b03090d |
|
BLAKE2b-256 | fa0e3ea1cd0b992459a876ee6b9ef11ac533aa77a529383deb239d5cf1981732 |