encrypt the socket