Just use MD5 or other common crypt algorithms. If you need to decrypt in the server side, then use public/private symmetric keys. Just putting that out there.