
Hi Andrew, Andrew Thrift wrote:
O.k. I have a PHP based web-shop that as an order is entered emails me the credit card details in un-encrypted form.
What I want to do is use gpg to encrypt these mails with a secret key so that only I can read them. I have very little knowledge of the workings of PGP/GPG but from perusing the man pages and README I have figured I can take the following approach:
1. An order is entered, PHP dumps data to a temp file 2. gpg is called to encrypt this. 3. encrypted file is sent to myself using unix mail command.
Is this the only way of doing it, or is their an easier way?
Yes that is the way it is done, however it is better to use a pipe to get the data into gpg, instead of putting it on the disk where it can be read by others. I have the code for a php class that does this if you need a more specific example. Regards g -- Glenn Ramsey <glenn(a)componic.com> 025 263 1932 http://www.componic.co.nz 07 868 3881