Skip to main content

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

This version

0.2.0

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.2.0.tar.gz (17.2 kB view details)

Uploaded Source

File details

Details for the file unimatrix.ext.crypto-0.2.0.tar.gz.

File metadata

  • Download URL: unimatrix.ext.crypto-0.2.0.tar.gz
  • Upload date:
  • Size: 17.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.1

File hashes

Hashes for unimatrix.ext.crypto-0.2.0.tar.gz
Algorithm Hash digest
SHA256 4f98ff840afac3ff2bbfcac5c7b6fa239622aed33fa503079fe5f82f84f5a0cc
MD5 67cd7348ab096cd4372b7eca927cbe9b
BLAKE2b-256 01c19b93b60cc6bdfa7fd29cbc00b1267be5ba3ec1094329ee6e1ddb4e686fe0

See more details on using hashes here.

Provenance

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