Skip to main content

No project description provided

Project description

Run tests PyPI version

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

picklecryptor-0.0.5.tar.gz (5.1 kB view hashes)

Uploaded Source

Built Distribution

picklecryptor-0.0.5-py3-none-any.whl (6.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page