title: PHP Where to save OpenSSL encryption key?
body: <p>I'm using this php function to encrypt some strings.</p>
  
  <pre><code>openssl_encrypt();
  </code></pre>
  
  <p>To generate the encryption key I use</p>
  
  <pre><code>$encryption_key = openssl_random_pseudo_bytes(32);
  </code></pre>
  
  <p>I also know that this encryption key should be stored somewhere.<br>
  The problem is that I don't want to store it in my database, because it could be accessible for hackers.<br><br>
  Where could I also store my keys safely?
  <br>
  <br>
  P.S. It makes any sense to store encrypted data and used keys in the same database</p>