Skip to main content

# 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’)

Release files for rho-crypto 0.5.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rho-crypto 0.5.2
File Size Uploaded
rho-crypto-0.5.2.tar.gz 3.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rho-crypto 0.5.2
File Interpreter ABI Platform
rho_crypto-0.5.2-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 7.5 kB

Release files / rho-crypto-0.5.2.tar.gz

Download URL rho-crypto-0.5.2.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
ed4abbaf6b1baa025f734deecf3323f76dd575c827e000eadedea207747107a2
BLAKE2b-256 checksum
How to use checksums
d81ff79748bd2724318539fd5b039722dcf7879951e285914a56a35b499c5a2a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.16

Release files / rho_crypto-0.5.2-py2.py3-none-any.whl

Download URL rho_crypto-0.5.2-py2.py3-none-any.whl
Size 3.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
dc5509ae4fc626a097a909a34fb1cf5a018a7c4fdbd832a8b9681d8823c7365a
BLAKE2b-256 checksum
How to use checksums
50a21b0a532f616f18906b7e0d2d6811169cf19abe0753ba38add020451b5406
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.16

Release history Release notifications | RSS feed

This release

0.5.2 This release

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.3

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page