This project implements a simple encryption program based on character substitution.
- Generate a new encryption key
- View the current key
- Encrypt a message
- Decrypt a message
- Set a custom key
- Exit the program
The program generates two lists:
- Original list: Contains all printable ASCII characters (from 32 to 126).
- Shuffled list: A copy of the original list, but randomly shuffled.
Each character in the original message is replaced with the corresponding character in the shuffled list, generating an encrypted text. To decrypt, the process is reversed.
Within the program, you can choose from the following options:
(N)
Generate a new encryption key(G)
Get the current key(E)
Encrypt a message(D)
Decrypt a message(S)
Set a custom key(Q)
Exit the program