add functions of sending encrypted message, decryption is still needed.