https://github.com/m4cs/objcrypt
Easily encrypt and decrypt python object and JSON objects.
https://github.com/m4cs/objcrypt
encryption json python
Last synced: 3 months ago
JSON representation
Easily encrypt and decrypt python object and JSON objects.
- Host: GitHub
- URL: https://github.com/m4cs/objcrypt
- Owner: M4cs
- License: mit
- Created: 2019-06-04T19:55:26.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-21T21:28:15.000Z (over 5 years ago)
- Last Synced: 2025-04-08T16:47:06.969Z (3 months ago)
- Topics: encryption, json, python
- Language: Python
- Size: 12.7 KB
- Stars: 7
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# objcrypt
easily encrypt and decrypt python object and JSON objects with AES CBC 32 Block Encryptionplanning on adding more encryption algos
# installation
```
pip install objcryptor
python3 setup.py install
```# usage
```
import objcrypt, jsoncrypter = objcrypt.Crypter('key')
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
```