Encryption and decryption primarily for encrypting messages in a Dimchat server and decrypting in Dimchat clients.