ROT++
Description
ROT--
# Alphabet consists of all uppercase so conver cipher
cipher = 'RPV47_ny_0wx_ol4b'.upper()
# Alphabet
alphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789' # Length of 36
flag = ''
shift = 0
for ch in cipher:
# Alphabet has no underscores
if ch == '_':
flag += '_'
else:
# Reverse the shift
flag += alphabet[alphabet.find(ch) - shift % 36]
shift += 1
print(flag)
Flag
Last updated