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.4.tar.gz
(2.1 kB
view details)
Built Distribution
File details
Details for the file elgamal-0.0.4.tar.gz
.
File metadata
- Download URL: elgamal-0.0.4.tar.gz
- Upload date:
- Size: 2.1 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.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71ea15f1b340a448fecda471112f5964f41c9e6c9790531f3316ed4f69da2187 |
|
MD5 | d05333eca6db370e084c590418ac532a |
|
BLAKE2b-256 | ffec30eda3c44c81fe4ddb6ebdb61656214b4b3be9fc74823fa85740ae499d55 |
File details
Details for the file elgamal-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: elgamal-0.0.4-py3-none-any.whl
- Upload date:
- Size: 3.2 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.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 943faf4accd3991825e69c5ccc5db189375196344c98446af308cad7b4ec3d62 |
|
MD5 | 6cfbfc459aec270359e89b53e2d6d89e |
|
BLAKE2b-256 | 2822711b67b38c00d44fb97b829ce985f5e95d1b0b45efc89355c428aa3cdb94 |