Skip to main content

Elgamal cryptography algorithms

Project description

pip install PyCryptoDomex

from elgamal import Elgamal

m = b'Text'

print(m)

pb, pv = Elgamal.newkeys(128)

print(pb)
print(pv)

ct = Elgamal.encrypt(m, pb)

print(ct)

dd = Elgamal.decrypt(ct, pv)

print(dd)
print()

My telegram: https://t.me/sidqdev
By sidq with love

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

elgamal-0.0.1.tar.gz (1.2 kB view details)

Uploaded Source

Built Distribution

elgamal-0.0.1-py3-none-any.whl (2.1 kB view details)

Uploaded Python 3

File details

Details for the file elgamal-0.0.1.tar.gz.

File metadata

  • Download URL: elgamal-0.0.1.tar.gz
  • Upload date:
  • Size: 1.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.3

File hashes

Hashes for elgamal-0.0.1.tar.gz
Algorithm Hash digest
SHA256 760ee99f37b4474e7b7770151c41243936b6a751a9fc691ad264cd78401630c8
MD5 55bb3d7dd8544549685dcb03e3ba542e
BLAKE2b-256 2714b804f747c75083c673d861d21c88690b25660ff0caf7f4252ffa88f62880

See more details on using hashes here.

File details

Details for the file elgamal-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: elgamal-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.3

File hashes

Hashes for elgamal-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fd46946741a7e490516259bf50608081ff26d7ad0f598842520e8e632fa19dd0
MD5 28d8c70bf9929c70bd6a6ac9209a2487
BLAKE2b-256 47f14821c630df372214c6c7830946e26b214c84d9e04ce8c7a5aaedda67e8b4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page