Simple chat server with encryption