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