Skip to main content

pip install PyCryptoDomex

from elgamal.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

Metadata

Release files for elgamal 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for elgamal 0.0.5
File Size Uploaded Provenance Actions
elgamal-0.0.5.tar.gz 2.1 kB Without provenance Details for elgamal-0.0.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for elgamal 0.0.5
File Interpreter ABI Platform Actions
elgamal-0.0.5-py3-none-any.whl Python 3 none any Details for elgamal-0.0.5-py3-none-any.whl

Total release size: 5.4 kB

Release files / elgamal-0.0.5.tar.gz

Download URL elgamal-0.0.5.tar.gz
Size 2.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ea8c2a1046ffb0162674acfc6c64b146f41795865b88df9e4681368dad4ae05b
BLAKE2b-256 checksum
How to use checksums
46edb109502e82404020c9b920e01728d9d3524ade7902adb1077a2a6684390e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.3.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.3

Release files / elgamal-0.0.5-py3-none-any.whl

Download URL elgamal-0.0.5-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c94a467224953e81edd6c7682709b862fecb1429f021dfdd42ce4aa72083d994
BLAKE2b-256 checksum
How to use checksums
4db6e136bdebad73315e54090916cfb212ec63510022caf983bb03257881116d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.3.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.3

Security for elgamal 0.0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page