Skip to main content

PyCrypto: A convenient Python wrapper for the KMS and various cryptographic algorithms

Project description

Py-Crypto

Simple Cryptographic Library With Key Management Server Integration

Quick Start

The easiest way to install PyCrypto is with pip:

# in bash
pip install pycryptokms

Python example:

# in python
from py_crypto.kms import StepKMSProvider
from py_crypto.crypto import AESCBCCipher

step_kms = StepKMSProvider(kms_base_url='https://localhost', kms_username='kms', kms_password='kms')

aes = AESCBCCipher(kms_provider=step_kms)

cipher_text = aes.encrypt(clear_text='254727128043', key_identifier='dummy-key')

print(f'Cipher Text: {cipher_text} -> Expected Cipher Text: \'Tywy7Y272MmuDlrewpOV9A==\'')

History

0.1.1 (2023-04-30)

  • First release on PyCrypto.

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

pycryptokms-0.1.1.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pycryptokms-0.1.1-py2.py3-none-any.whl (5.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pycryptokms-0.1.1.tar.gz.

File metadata

  • Download URL: pycryptokms-0.1.1.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for pycryptokms-0.1.1.tar.gz
Algorithm Hash digest
SHA256 af30e6e07188600bda16297c49012e92a4750d4a6d47e6bcdab30f8e0eadbff8
MD5 feacf6250398cb8913ffd76c700b32d3
BLAKE2b-256 7c827ebe1563c064c95d307bd666bb6a1eb9bd75398377107b6e3df0dd385d5a

See more details on using hashes here.

File details

Details for the file pycryptokms-0.1.1-py2.py3-none-any.whl.

File metadata

  • Download URL: pycryptokms-0.1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for pycryptokms-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9186bc918e4a6ae5394559a06969f00a0456a9f5c815990303e99997b841ecab
MD5 97082d2004d2e237031f8512b9c8fd7a
BLAKE2b-256 e9217ecbb0969c4189cf9ee4513d2d4f451b188c7e886187028059ab8b55cf59

See more details on using hashes here.

Supported by

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