Added encryption between server and client