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.
You can use java.security package functionality for simple encryption
Use the following code:
This will return the encrypted password. Please refer to the JDK Doc for the detail about message diggest.