Blame | Last modification | View Log | RSS feed
# e(x) = 3x + 3 mod 26 d(x) = 9(x-3) mod 26
if __name__ == '__main__':
string = 'NPVGP GIZGH LGZKP LKKLF EQZUN PGEHZ RKZOJ ZGZXZ MZQKA'
output = ""
for c in string:
if c != ' ':
char = ord(c) - 64
output += (chr((3 * char - 21) % 26 + 64))
else:
output += ' '
print output