Elgamal cryptography algorithms
Project description
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
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.5.tar.gz
(2.1 kB
view details)
Built Distribution
File details
Details for the file elgamal-0.0.5.tar.gz
.
File metadata
- Download URL: elgamal-0.0.5.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 | ea8c2a1046ffb0162674acfc6c64b146f41795865b88df9e4681368dad4ae05b |
|
MD5 | 8e1e9465ec78f7033dabe161def79132 |
|
BLAKE2b-256 | 46edb109502e82404020c9b920e01728d9d3524ade7902adb1077a2a6684390e |
File details
Details for the file elgamal-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: elgamal-0.0.5-py3-none-any.whl
- Upload date:
- Size: 3.3 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 | c94a467224953e81edd6c7682709b862fecb1429f021dfdd42ce4aa72083d994 |
|
MD5 | fc10c099c387aa3f992e106c6403c9db |
|
BLAKE2b-256 | 4db6e136bdebad73315e54090916cfb212ec63510022caf983bb03257881116d |