Python code. On encrypting and decrypting messages.