simple chat program using encryption