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
File details
Details for the file picklecryptor-0.0.5.tar.gz
.
File metadata
- Download URL: picklecryptor-0.0.5.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc0bbfb36acc8d68027c481a2d9ff6b94caae36ad64cda2492ca13062a2a5295 |
|
MD5 | ba3967659181aa6f156decbea28ac3c9 |
|
BLAKE2b-256 | ea0d53430bce929509f69906ec2b9e933e7b037d6b16089ec55b4133a5cf25bf |
File details
Details for the file picklecryptor-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: picklecryptor-0.0.5-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bed5df5490f86f754062b44c3d17d69d6b13b38c29327404b6311aa662e7dd5a |
|
MD5 | 84472e825845d33f642cb8ae24e922fb |
|
BLAKE2b-256 | d7930812a7b6550c2f8d4f3dc295c64ec5f6409c183dae9de3b5cf6ca623fa51 |