title: Best way to store passwords in a mysql database?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/947618/how-to-best-store-user-information-and-user-login-and-password">How to best store user information and user login and password</a><br>
    <a href="https://stackoverflow.com/questions/4795385/how-do-you-use-bcrypt-for-hashing-passwords-in-php">How do you use bcrypt for hashing passwords in PHP?</a>  </p>
  </blockquote>
  
  
  
  <p>I am used to using the md5() which I know is now outdated and I hear that sha1() is also insecure. So what is exactly the best way to store and retrieve passwords in a database these days with security in mind? I'd be very happy if you can provide a small example.</p>
  
  <p>Thank you!</p>