Implemented message encryption