SafePickling is a python library that allows you to sign and verify python pickles
Project description
SafePickling
SafePickling is a python library that allows you to sign and verify python pickles.
Installation
pip install safepickling
Usage
object = ExampleObject()
server = SafePickling() # Create a server instance
server.generate_key() # Generate a random key for the server
safe_data = server.pickle(object) # Pickle the object and sign it
client = SafePickling() # Create a client instance
client.add_trusted_keys([server.key]) # Add the server's key to the client's trusted keys
client_data = client.unpickle(safe_data) # Unpickle the data while verifying it's signature with the server's key
Cryptography
Random provided by secrets.token_bytes
Hash comparison with hmac.compare_digest
Hashing done using hashlib.blake2b
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
SafePickling-0.1.1.tar.gz
(2.2 kB
view hashes)
Built Distribution
Close
Hashes for SafePickling-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6515bdea3851c0eff6872eb94ca9d68e1b5fded85f407f6994f1799090704332 |
|
MD5 | 73c34412970f86c31a1c28eafa2d2711 |
|
BLAKE2b-256 | 13b248787cbfd10915a77e3ad676238fe8beb948d3d306e46e74c2e044dd99ea |