Name: Bo Wang Email: bo.wang@email.wsu.edu
Description: A public-key cryptosystem. Coded in Python, use 33bits modulo and 32bits block.
To Run:
- Put some text in 'ptext.txt', if not provided any, there's some old text in that file.
- In terminal, in the 'file' directory, type: python publicKeyCrypto.py
- Each time, select successively 'Key Generation', 'Encrypt', 'Decrypt' by typing a number
- The decrypted message will be stored in 'dtext.txt'
List of files:
- README.txt
- ptext.txt (where the plain text is stored)
- dtext.txt (where the decrypted message is stored)
- pubkey.txt (store one's public key with form "prime,generator,public key")
- prikey.txt (store one's private key with form "prime,generator,private key")
- ctext.txt (where the encrypted messages is stored)
- publicKeyCrypto.py (main program)
- keyGenerator.py (component for generating keys)
- Encryption.py (component for encryption)
- Decryption.py (component for decryption)