Decrypting a Substitution Cipher without the cipher key. (also includes a program to encrypt a text using substitution cipher)
HOW TO USE ENCRIPTION.PY
- Create a text file and copy paste some article with a lot of English language text (eg. from wikipedia).
- Run encription.py, give the input and get an encrypted copy of your file (substitution cipher encrypted).
HOW TO USE DECRIPTION.PY
- Give the input of a substitution cipher encripted text and you will get the decripted text on your terminal.
- If you don't have a substitution cipher encripted text, create one using the encription.py
POSSIBLE VARIATIONS TO DECRIPTION.PY (especially if output doesn't fit on the terminal)
- If the output is not fitting in the terminal, write it to a file.
- The variable 'z' mentioned in the print statement on the last line holds the decripted string.
- write that string to a file if you want to