Skip to main content

Hybrid cryptosystem for python

Project description

hycrypt

Hybrid cryptosystem for python

image info

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

This version

1.0

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 details)

Uploaded Source

Built Distribution

hycrypt-1.0-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file hycrypt-1.0.tar.gz.

File metadata

  • Download URL: hycrypt-1.0.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.1.dev0+g94f810c.d20240510 CPython/3.12.4

File hashes

Hashes for hycrypt-1.0.tar.gz
Algorithm Hash digest
SHA256 602ae071abb2fcf495d9ef0375fa974b6e3cd30600bfc7758d8ec4d296a1113d
MD5 9b8cad84528f57cceb33d9a3f5c6e26c
BLAKE2b-256 d0f65cc09c7df7a206fd2e69176ff7d8bf1e4fd519583f497137f70c62b0ac82

See more details on using hashes here.

File details

Details for the file hycrypt-1.0-py3-none-any.whl.

File metadata

  • Download URL: hycrypt-1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.1.dev0+g94f810c.d20240510 CPython/3.12.4

File hashes

Hashes for hycrypt-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8b814157ffafe2aeaf334e5668fd43e31f77a538eb7090b2456a242a3f26fb1b
MD5 ce7ad571520503490c6071088cd0a90c
BLAKE2b-256 d92007efc9baae0f84d941825315f95167d2105bf6d15b6d3c11da9f937d5779

See more details on using hashes here.

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