I am not a PGP expert and php isn't my first language, so I am having some trouble using gnupg to encrypt a file. I can get it to encrypt strings just fine.
If I use PGPTool (windows) to encrypt my file and then open it in a text editor it looks like binary data...
…]/…D2Øþ3EaÚj'ƒ‚Ì
4aœ¶è[Šæ³7=q [Ûµ|<j‘«™yÅʧÊ[¥å¾•§Ù³,–rnÃÆ¦â…–iüïÛµèCŠ
If I read in the file and encrypt it with gnupg i get a plain text result, as if it were to be pasted into an email.
-----BEGIN PGP MESSAGE-----
Version: GnuPG v2.0.22 (GNU/Linux)
hQMOAx1dL4VEMtgUEAv/cOuJDBZ8FIYk7kqsh2vOvW2WRUvOUi54xm1LPGxLPiMS
My problem is, I need it to be output as the first option for sending to a specific client. Is there a way to get gnupg and php to do this?