@anonymous/

GrumpyGrippingErne

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# CLICK ON RUN TO START!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
#THAT WAS JUST TO CATCH YOUR ATTENTION DON'T THINK I USE THAT MANY EXCLAMATION MARKS SERIOUSLY
def rot(string, rot_num):
    alph = "abcdefghijklmnopqrstuvwxyz"

    outtab = alph[rot_num:] + alph[:rot_num]

    trans = str.maketrans(alph, outtab)

    return string.translate(trans)
    
print("76543 cipher solver")
print("By @Ako")
string = input("Input string to solve: ").lower()
rot_num = -1

ret = ""

for i in string:
    if i == " ":
        ret += " "
        rot_num -= 1
    else:
        ret += rot(i, rot_num%26)
        rot_num -= 1


print("Solved string: ",ret)