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
Release files for objcrypt 0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| objcrypt-0.6.tar.gz | 1.9 kB | Details |
Release files / objcrypt-0.6.tar.gz
| Download URL | objcrypt-0.6.tar.gz |
|---|---|
| Size | 1.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
58f14173f7b98e4992a4ba1b43e21f56b48567c5c2bb3b0640105d139f8019e8
|
|
BLAKE2b-256 checksum How to use checksums |
35f18cdaaa96d4a90280cb974cf1a2e12f313e4913ece871fe06b07f5810f881
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|