Added a simple password encrypt function on the client.