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.