Super easy asymmetric encryption for python
Project description
Super easy asymmetric encryption for python
Introduction
python-asymcrypt is a wrapper around pycryptodome to make it even more easier for asymmetric encryption.
Installation
With pip
pip install asymcrypt
Usage
Generate keys files
import asymcrypt asymcrypt.generate_keys('my_private_key_file.pem','my_public_key_file.pem')
Encrypt data
data = 'A string, not an unicode' encrypted_data = asymcrypt.encrypt_data(data,'my_public_key_file.pem')
Decrypt data
data = asymcrypt.decrypt_data(encrypted_data,'my_private_key_file.pem')
Passphrase
As an option, you can use passphrase option in each functions to generate encrypted keys and read them when using encrypt/decrypt_data() functions
News
0.0.2 (2018-09-28)
First running version
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
asymcrypt-0.0.2.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for asymcrypt-0.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8e34ff0208400025ef63ee4797c01f7180ced31dc07d8b2fa6e00e1675775e8 |
|
MD5 | 97d035e6a50c44a04202c91024e2eadf |
|
BLAKE2b-256 | ed6e2cef4d0548a009ce4da0cb2ce2524da6b8434a43ed99c162c5a434405d2c |