MD5 AND JAVA

Is there anyway that I can enter a string in a text field and use and MD5 function on it than store it in a database?In PHP it's just the simple built-in md5 function...how can i implement it in JSP?
[228 byte] By [Octaviana] at [2007-10-3 4:53:43]
# 1
http://java.sun.com/docs/books/tutorial/security/overview/index.html http://java.sun.com/j2se/1.4.2/docs/api/java/security/MessageDigest.html
sabre150a at 2007-7-14 22:58:35 > top of Java-index,Security,Cryptography...