Added encryption for server connection