# 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')
Raw data
{
"_id": null,
"home_page": "https://gitlab.com/sermos/rho-crypto",
"name": "rho-crypto",
"maintainer": "Rho Impact",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/d8/1f/f79748bd2724318539fd5b039722dcf7879951e285914a56a35b499c5a2a/rho-crypto-0.5.2.tar.gz",
"platform": null,
"description": "# Rho-Crypto\n\nBasic cryptographic utilties for common tasks.\n\n## AES Cipher\n\nUtility class for encrypting and decrypting a string.\n\nSample use:\n\n from rho_crypto.aes import AESCipher\n\n AES_SECRET_KEY = os.environ.get('AES_SECRET_KEY', None)\n cipher = AESCipher(AES_SECRET_KEY)\n\n # Encrypt a password\n cipher.encrypt('plaintext-password').decode('utf-8')\n\n # Decrypt a password\n cipher.decrypt('encrypted-password')\n\n\n## Hashing\n\nCreate consistent SHA1 hash of a file.\n\nSample use:\n\n from rho_crypto.hashing import Hasher\n\n my_hasher = Hasher()\n sha1_hash_val = my_hasher.hash_from_path('tests/fixtures/test-file.txt', 'SHA1')\n\n\n",
"bugtrack_url": null,
"license": "Commercial",
"summary": "Crypto utilities",
"version": "0.5.2",
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"md5": "1c71d654f9ed53c39f0546b560026bf4",
"sha256": "dc5509ae4fc626a097a909a34fb1cf5a018a7c4fdbd832a8b9681d8823c7365a"
},
"downloads": -1,
"filename": "rho_crypto-0.5.2-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "1c71d654f9ed53c39f0546b560026bf4",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 3820,
"upload_time": "2022-12-20T15:30:58",
"upload_time_iso_8601": "2022-12-20T15:30:58.779725Z",
"url": "https://files.pythonhosted.org/packages/50/a2/1b0a532f616f18906b7e0d2d6811169cf19abe0753ba38add020451b5406/rho_crypto-0.5.2-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"md5": "62a44c45bbb6c2803ba7274424f64b19",
"sha256": "ed4abbaf6b1baa025f734deecf3323f76dd575c827e000eadedea207747107a2"
},
"downloads": -1,
"filename": "rho-crypto-0.5.2.tar.gz",
"has_sig": false,
"md5_digest": "62a44c45bbb6c2803ba7274424f64b19",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3652,
"upload_time": "2022-12-20T15:31:00",
"upload_time_iso_8601": "2022-12-20T15:31:00.442190Z",
"url": "https://files.pythonhosted.org/packages/d8/1f/f79748bd2724318539fd5b039722dcf7879951e285914a56a35b499c5a2a/rho-crypto-0.5.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2022-12-20 15:31:00",
"github": false,
"gitlab": true,
"bitbucket": false,
"gitlab_user": "sermos",
"gitlab_project": "rho-crypto",
"lcname": "rho-crypto"
}