Passwords

Discussions

General J2EE: Passwords

  1. Passwords (2 messages)

    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

    Threaded Messages (2)

  2. Passwords[ Go to top ]

    You can use java.security package functionality for simple encryption
  3. Passwords[ Go to top ]

    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