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.2.tar.gz (1.2 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: elgamal-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 e09dea9060260fa5be12ab50a7e7be9e9c1d4345c6a061f28db0483dc98c44d0
MD5 2ff6a0fcddd853725191577a40c440c4
BLAKE2b-256 34db53c4643bdcff5e5faf44b2724907c8485ef0b2ff8f9b1245b2e1df9f18ec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: elgamal-0.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f7808470abc4d74082d10dd1d800e0e5319af17e94a1b7cb5a3a820b497ae415
MD5 a4be48e3359c9b8d321bd8d076904aff
BLAKE2b-256 b707601c906591c78966a57c941fe424cbf39b57de2f30d15f98beeba6298ce7

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 Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page