Added encrypt/decrypt functionality for messages...still a work in progress