Subversion Repositories Code-Repo

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
140 Kevin 1
# e(x) = 3x + 3 mod 26		d(x) = 9(x-3) mod 26
2
if __name__ == '__main__':
3
	string = 'NPVGP GIZGH LGZKP LKKLF EQZUN PGEHZ RKZOJ ZGZXZ MZQKA'
4
	output = ""
5
	for c in string:
6
		if c != ' ':
7
			char = ord(c) - 64
8
			output += (chr((3 * char - 21) % 26 + 64))
9
		else:
10
			output += ' '
11
	print output