About MD5 encryption...

How to encrypte the password(MD5) which is user input and put the encrypted password to MySQL database?Any api can help me?
[137 byte] By [Eddie@HongKonga] at [2007-11-27 8:19:19]
# 1

The easiest way would be to use the MySQL function to do it for you.

http://dev.mysql.com/doc/refman/4.1/en/encryption-functions.html#function_md5

If you want to do it yourself, in java, then you use the MessageDigest API. A quick google on java and MD5 will come up with plenty of examples of use.

http://java.sun.com/j2se/1.5.0/docs/api/java/security/MessageDigest.html#getInstance(java.lang.String, java.lang.String)

evnafetsa at 2007-7-12 20:07:27 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...