A lightweight and secure chat system