Easily Encrypt and Decrypt Python and JSON Objects
Project description
objcrypt
easily encrypt and decrypt python object and JSON objects with AES CBC 32 Block Encryption
installation
pip install objcrypt
or
python3 setup.py install
usage
import objcrypt, json
crypter = objcrypt.Crypter('key', 'cbc')
dictionary = {
'test': 'test value'
}
encrypted_dict = crypter.encrypt_object(dictionary)
# encrypted_dict now has encrypted values
json_dict = json.loads(dictionary)
enc_json = crypter.encrypt_json(json_dict)
# enc_json is now encrypted
dec_dict = crypter.decrypt_object(encrypted_dict)
# decoded now
dec_json = crypter.decrypt_json(enc_json)
# decoded json object now
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
objcrypt-0.6.tar.gz
(1.9 kB
view details)
File details
Details for the file objcrypt-0.6.tar.gz
.
File metadata
- Download URL: objcrypt-0.6.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58f14173f7b98e4992a4ba1b43e21f56b48567c5c2bb3b0640105d139f8019e8 |
|
MD5 | b0c1f76d0cc14af9aa396a8805824ab3 |
|
BLAKE2b-256 | 35f18cdaaa96d4a90280cb974cf1a2e12f313e4913ece871fe06b07f5810f881 |