title: Encryption method for storing passwords in database
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/335888/what-function-to-use-to-hash-passwords-in-mysql">What function to use to hash passwords in MySQL?</a><br>
    <a href="https://stackoverflow.com/questions/4334829/secure-password-storaging">Secure password storage</a>  </p>
  </blockquote>
  
  
  
  <p>What is the best mechanism for storing passwords into database after encryption of the password? And what is the method of encryption and an implementation in Java?</p>