Client-side encrypted chat engine