Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Encrypted Password

I'm using Java at Front end and SQL 2000 at the backend. I need to capture the Password entered in a Text Field and encrypt it and store it in a database. How do I do that?
[177 byte] By [harini19] at [2007-11-11 8:01:05]
# 1 Re: Encrypted Password
String password = JTextField.getText();
Encrypt with MD5. Either search for java and md5 hashing, or you could encrypt it when you insert the password into the sql database as sql has an md5 function.
Phaelax at 2007-11-11 22:36:37 >