title: Encrypt/Secure DB connection string in php
body: <p>one of the project required me to encrypt DB connection string (username &amp; password). </p>
  
  <p>Usually I use .htaccess to restrict user to access from web. 
  But this project want me to store userid &amp; password not in clear text.</p>