Possible Duplicate:
Caesar's Cipher using python, could use a little help
def affine (a, b):
for i in range(26):
print chr(i+65) + ": " + chr (((a*i+b)%26)+65)
This is something I have come across. How can I use this with a message "Hello world" and encrypt it?
And also how to Decrypt a message?