Hybrid cryptosystem for python
Project description
hycrypt
Hybrid cryptosystem for python
Quick Start
For more flexible use:
plaintext = b"secret"
ciphertext, public_key = hycrypt.encrypt_with_password(plaintext, password=b"password1")
decrypted_message = hycrypt.decrypt_with_password(ciphertext, password=b"password1")
assert decrypted_message == plaintext
new_plaintext = b"my new secret"
new_ciphertext = hycrypt.encrypt_with_public_key(previous_data=ciphertext, plaintext=new_plaintext, public_key=public_key)
new_decrypted_message = hycrypt.decrypt_with_password(new_ciphertext, password=b"password1")
assert new_decrypted_message == new_plaintext
To install hycrypt using pip:
pip install hycrypt
How It Works
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
hycrypt-1.0.tar.gz
(9.3 kB
view hashes)
Built Distribution
hycrypt-1.0-py3-none-any.whl
(10.9 kB
view hashes)