0

String –> MD5 String (in JSP)

Posted by stuporglue on Mar 14, 2010 in Programming, Projects

I’m not a huge fan of JSP, but it scales better than PHP, so I guess it’s got its uses. Here is a script I wrote in JSP which takes a string and creates a new string which is the MD5 hash of the input string. It is pretty heavily commented, so you should be able to follow it reasonably easily. Don’t miss the import of java.security.MessageDigest which we use.

Tags: ,

Original content on this page is under the Creative Commons Attribution-ShareAlike 3.0 License unless otherwise noted.

If you found this page particularly helpful, I'd love to hear from you. A link to this page from your blog or website would also be appreciated.

I'm the real Michael Moore