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
unimatrix.ext.crypto-0.1.2.tar.gz
(13.9 kB
view hashes)
Close
Hashes for unimatrix.ext.crypto-0.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22657c9d1d38b3bab8cd3c1a34d1b05e4fcbd707fd8d268928da8450ad9cedb0 |
|
MD5 | 77819364b60a6d2658f6c9e2227a057d |
|
BLAKE2b-256 | 11a3e0dc4f513015eb569a8453219a9923fd8bf47de0794040a574790328cb65 |