Hi,
I have to save passwords in an database and I don't want to do that without encryption. What API can I use? It should be for free and it must not provide too much. A simple encryption functionality is enough.
Thanx, Andy
-
Passwords (2 messages)
- Posted by: Andy .
- Posted on: September 25 2001 08:12 EDT
Threaded Messages (2)
- Passwords by Sriganesh Sundaram on October 10 2001 17:46 EDT
- Passwords by jianwu chen on October 19 2001 02:40 EDT
-
Passwords[ Go to top ]
- Posted by: Sriganesh Sundaram
- Posted on: October 10 2001 17:46 EDT
- in response to Andy .
You can use java.security package functionality for simple encryption -
Passwords[ Go to top ]
- Posted by: jianwu chen
- Posted on: October 19 2001 02:40 EDT
- in response to Andy .
Use the following code:
MessageDigest.getInstance("MD5").digest(password.getBytes());
This will return the encrypted password. Please refer to the JDK Doc for the detail about message diggest.
Regards
Jianwu