I need to have a password encrypted and compared to a value found in a mysql table as part of a log on for my JSP application. I'm new to Encryption under java and I was wondering what is the best way of doing so. I have been looking online to no avail. Just a point in the right direction would be great. Thanks