title: Storing sensitive data with Drupal
body: <p>I need to <strong>use sensitive data with Drupal</strong> for a custom module to use. If I simply <strong>set them through the GUI</strong>, they will be <strong>stored unencrypted in the database.</strong> Anyone having access to it will have access to my sensitive data.</p>
  
  <p>I can see two solutions for the moment:</p>
  
  <ol>
  <li>Find a way to securely store those credentials into the database;</li>
  <li>Put those sensitive data into a credentials_inc.php file, include it in settings.php to set variables my custom module could use and make sure that nobody else can read the file.</li>
  </ol>
  
  <p>Which solution is best according to you? What do you recommend? Is there any other best option?</p>
  
  <p>Best regards.</p>