Expand my Community achievements bar.

Hashing of the password field using MD5 and then store in the XML

Avatar

Level 1

Hi,

I need to design a form with User ID and a Password field. When i extract the XML from the form i need to hash the password field using MD5 and then store it. Does anyone have some kind of experience in doint it. Can you please suggest some way to do it.

Thanks,

Sayoni.

4 Replies

Avatar

Level 6

Hi,

To hash password you can use function from http://kevin.vanzonneveld.net/techblog/article/javascript_equivalent_for_phps_md5/ or try to find another implementation. Just call this function on some event like button click for example.

Also I made some example. See attach.

BR,

Paul Butenko

Avatar

Level 1

Hi,

I am not able to download the attachment given by you in the example. Can you please re attach it once again.

Thanks,

Sayoni.

Avatar

Level 10

Java provides its own implementation to achieve MD5 hashing..

See the documentation for MessageDigest class in java.security package for more details..

Nith

Avatar

Level 6

Re attached.

If it will not work, send me youre email.