Skip to content

Implementation of elliptic curve elgamal cryptography in Python (coursework)

Notifications You must be signed in to change notification settings

willdunklin/elgamal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

elgamal

Basic implementation of naive ElGamal cryptosystem.

Usage

# Help
$ python3.9 main.py -h

# Generate crypto keys
$ python3.9 main.py elgamal gen_keys <n_bits> <certainty> <pubkeys_file> <privkey_file>

# Encrypt file
$ python3.9 main.py elgamal gen_keys <pubkeys_file> <plaintext_file> <encrypted_file>

# Decrypt file
$ python3.9 main.py elgamal decrypt <pubkeys_file> <privkey_file> <encrypted_file> <decrypted_file>

About

Implementation of elliptic curve elgamal cryptography in Python (coursework)

Topics

Resources

Stars

Watchers

Forks

Languages