adding msg encryption from server to client