title: best password encryption and decryption technique to be used with PHP
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1289061/best-way-to-use-php-to-encrypt-and-decrypt">Best way to use PHP to encrypt and decrypt?</a>  </p>
  </blockquote>
  
  
  
  <p>For my project I want to store password in encrypted format, </p>
  
  <p>so i have stored it using <code>md5('password')</code>, but my project requirement is that we should be able to decrypt the password, and as you all know we can not decrypt md5 encrypted string.</p>
  
  <p>so i have choose it to encode using <code>base64_decode('password')</code> and decode it using <code>base64_decode('encodedpassword')</code>.</p>
  
  <p>but i want to know that is it a best practice to use <code>base64_encode</code> ? or is there any other encryption decryption technique with PHP?</p>