Hi, I am IT&Network Engineer, i have big experience with Java and security and did a project like this before: GUI interface for chating, you write your message, the application will encrypt it and when it's received the message will be decrypted again, so no one can spy at the message while sending. I am sure that you will be happy with the result :)