This little python desktop app is inspired from a problem on Edabit.com related to Cipher Encryption. We aim here to play around by chatting only encrypted words just for fun. The principle for a message goes as:
🔑 All alpha characters will be treated as uppercase letters.
🔑 The first alpha character will not change (except for switching to upper case)
🔑 All subsequent alpha characters will be shifted toward "Z" by the alphabetical position of the previous alpha character (wrap back to "A" if "Z" is passed)
⭕ IMPORTANT: A sentence is not encrypted word by word. ⭕
Example: The famous sentence Hello world is encrypted HMQXA LLGDP in this way
P(x) is x position in the alphabet
Origin | Translation | Explanation |
---|---|---|
H | H | First letter |
e | M | M = e + P(H) |
l | Q | Q = l + P(e) |
l | X | X = l + P(l) |
o | A | A = o + P(l) |
w | L | L = w + P(o) |
o | L | L = o + P(w) |
r | G | G = r + P(o) |
l | D | D = l + P(r) |
d | P | P = d + P(l) |
🔑 Clone the files and basically put them in the same folder;
🔑 Check all requirements on the packages used;
🔑 Run cipher_main.py with python 3.9 or version around.
You should obtain something like this
🔑 Qt version 5.15.2
🔑 PyQt version 5.15.2
🔑 You can make changes to main.ui by using Qt Designer
🔑 Just pick your favourite text editor for cipher_main.py. Only make sure you are using python 3.