title: How to use the PGP encryption in PHP?
body: <p>I need to use the PGP encryption.
  Need to create the public and private keys and encrypt the data of file with PGP encryption technique.
  How to do all these with PHP code?</p>
  
  <p>I tried installing gnupg, but that isn't working.
  Then tried using OpenPGP library like example 
   - <a href="https://stackoverflow.com/questions/12411738/how-do-you-use-the-php-openpgp-library">How do you use the PHP OpenPGP library?</a></p>
  
  <p>But these things didn't worked.</p>