Added encryption and decryption of messages. (#5)