encrypted server and client