Skip to main content

Crypto utilities

Project description

# Rho-Crypto

Basic cryptographic utilties for common tasks.

## AES Cipher

Utility class for encrypting and decrypting a string.

Sample use:

from rho_crypto.aes import AESCipher

AES_SECRET_KEY = os.environ.get(‘AES_SECRET_KEY’, None) cipher = AESCipher(AES_SECRET_KEY)

# Encrypt a password cipher.encrypt(‘plaintext-password’).decode(‘utf-8’)

# Decrypt a password cipher.decrypt(‘encrypted-password’)

## Hashing

Create consistent SHA1 hash of a file.

Sample use:

from rho_crypto.hashing import Hasher

my_hasher = Hasher() sha1_hash_val = my_hasher.hash_from_path(‘tests/fixtures/test-file.txt’, ‘SHA1’)

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

rho-crypto-0.5.2.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

rho_crypto-0.5.2-py2.py3-none-any.whl (3.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file rho-crypto-0.5.2.tar.gz.

File metadata

  • Download URL: rho-crypto-0.5.2.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.16

File hashes

Hashes for rho-crypto-0.5.2.tar.gz
Algorithm Hash digest
SHA256 ed4abbaf6b1baa025f734deecf3323f76dd575c827e000eadedea207747107a2
MD5 62a44c45bbb6c2803ba7274424f64b19
BLAKE2b-256 d81ff79748bd2724318539fd5b039722dcf7879951e285914a56a35b499c5a2a

See more details on using hashes here.

File details

Details for the file rho_crypto-0.5.2-py2.py3-none-any.whl.

File metadata

  • Download URL: rho_crypto-0.5.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.16

File hashes

Hashes for rho_crypto-0.5.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 dc5509ae4fc626a097a909a34fb1cf5a018a7c4fdbd832a8b9681d8823c7365a
MD5 1c71d654f9ed53c39f0546b560026bf4
BLAKE2b-256 50a21b0a532f616f18906b7e0d2d6811169cf19abe0753ba38add020451b5406

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