cryptidy
Python high level library for symmetric & asymmetric encryption
This library has been written to make encryption / decryption of any python object as simple as possible. It is based on AES encryption (265 or 128 bytes).
It's main features are:
- Encrypt any pickable Python object / variables
- Add an UTC timestamp to the encrypted message
- Verify that decrypted messages timestamps aren't in the future
- Allow symmetric encryption (AES)
- 128, 192 or 256 bits encryption
- Allow asymmetric encryption (RSA + AES)
- 1024, 2048 or 4096 bits encryption using AES128 (1024 bits RSA) or AES256 (2048 or 4096 bits RSA)
- Provide the encypted data as base64 string for maximum portability between platforms and encodings
- Unload AES key from memory as soon as possible to help prevent memory attacks
Setup
cryptidy requires Python 2.7+
pip install cryptidy
Symmetric encryption usage
from cryptidy import symmetric_encryption
key = symmetric_encryption.generate_key(32) # 32 bytes = 256 bits
some_python_object = ['foo', 'bar']
encrypted = symmetric_encryption.encrypt_message(some_python_object, key)
timestamp, original_object = symmetric_encryption.decrypt_message(encrypted, key)
Asymmetric encryption usage
from cryptidy import asymmetric_encryption
priv_key, pub_key = asymmetric_encryption.generate_keys(2048) # 2048 bits RSA key
some_python_object = ['foo', 'bar']
encrypted = asymmetric_encryption.encrypt_message(some_python_object, pub_key)
timestamp, original_object = asymmetric_encryption.decrypt_message(encrypted, priv_key)
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cryptidy-1.0.5.tar.gz
(8.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
cryptidy-1.0.5-py3-none-any.whl
(10.5 kB
view details)
File details
Details for the file cryptidy-1.0.5.tar.gz.
File metadata
- Download URL: cryptidy-1.0.5.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.1 CPython/3.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
538c59f0279d445a10fa265a10c67c054f28dc06dfb7c0b75f0f8725ec93bcb0
|
|
| MD5 |
8de19a4c2a6a0645fd393c38ad1444de
|
|
| BLAKE2b-256 |
cae5f1ac52e943a5592438675feb259baf43ab688d0301fcfaca180e894d523e
|
File details
Details for the file cryptidy-1.0.5-py3-none-any.whl.
File metadata
- Download URL: cryptidy-1.0.5-py3-none-any.whl
- Upload date:
- Size: 10.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.1 CPython/3.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3085f27e38568cd0cb43d613bee83b7d50014547dac4b59a80c5b819e76c6585
|
|
| MD5 |
e1e5295af343f0295f7371b4f8a6ccfa
|
|
| BLAKE2b-256 |
1a17a2681dd84894296fe14dd38a2629bc8ef8990b99e4de5ae24c54d526bed3
|