No project description provided
Project description
PickleCryptor
A simple library for serializing / compressing / encrypting Python objects all in one function.
Installation
pip install picklecryptor
Simple Usage Example
>>> from picklecryptor import *
>>> p = PickleCryptor(password='hello world')
>>> d = {'a' : 'hi'}
>>> s = p.serialize(d)
>>> print(s)
b'{\xa9\xbc\x8e]N\xf1\xa1\xefk\xeb5\x99\\\xd1\xca\x01\x8d6\x81\x12 \x80\xeew=\xeeq\xa3\xc9B\x08'
>>> print(p.deserialize(s))
{'a': 'hi'}
In this example we create a PickleCryptor object that will use the given password for encryption/decryption. Using the default params for the encryption/compression parameters leads to AES ECB encryption along winh zlib compression using it's default setting.
Some non-default types of compression and encryption are natively supported. Check the docs for more information.
See https://csm10495.github.io/picklecryptor/ for full API documentation.
License
MIT License
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
picklecryptor-0.0.1.tar.gz
(4.5 kB
view hashes)
Built Distribution
Close
Hashes for picklecryptor-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab716d5d8dc9fe33463b728647a193f0140137aaae4e31a989b0d92ec4431f55 |
|
MD5 | 5f439c253eafcadbdfeefd104f8e91ef |
|
BLAKE2b-256 | 09d88c50779fc568114e2ccef7ccbfa02eecb467f398bf0915a3fc1547be23dc |