No project description provided
Project description
PickleCryptor
A simple library for serializing / compressing / encrypting Python objects all in two functions on one object.
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 with zlib compression.
Some other types of compression and encryption are natively supported. Just pass in the enum values corresponding with what you'd like to PickleCryptor
. 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
Built Distribution
Hashes for picklecryptor-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bed5df5490f86f754062b44c3d17d69d6b13b38c29327404b6311aa662e7dd5a |
|
MD5 | 84472e825845d33f642cb8ae24e922fb |
|
BLAKE2b-256 | d7930812a7b6550c2f8d4f3dc295c64ec5f6409c183dae9de3b5cf6ca623fa51 |