-
Notifications
You must be signed in to change notification settings - Fork 0
AdamSJohnson/ElGamal
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This Elgamal.py is just EllipticalCurve.py with extra methods.
To use this program:
First get a key file:
run elgamal_generate_keys()
Second to encrypt a file with the keys:
run encrypt_with_keys()
Third to decrypt with your key file:
run decrypt_with_keys()
encrypt_with_keys outputs a cipher text file where each line
is formated as such:
{Cipher},{Half_Mask}
...
...
{Cipher},{Half_Mask}
Note the Half_Mask is g^b
The File is named SecretCipher.txt
Epub.keys is formatted as such:
p = {prime}
g = {generator}
g^a = {half_mask}
a = {Decryption secret}
About
Implmentation of ElGamal public key encryption for Cryptography class
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published