GPG encrypting form data

Dee Lowndes dee at asyouneed.com
Thu Feb 12 18:29:11 CET 2004


> -----Original Message-----
> From: gnupg-users-bounces at gnupg.org
[mailto:gnupg-users-bounces at gnupg.org]
> On Behalf Of Neil Williams
> Sent: 12 February 2004 09:22
> To: gnupg-users at gnupg.org
> Subject: Re: GPG encrypting form data
> 
> On Thu, Feb 12, 2004 at 09:01:50AM -0000, Dee Lowndes wrote:
> > > On Wed, Feb 11, 2004 at 10:47:37PM -0000, Dee Lowndes wrote:
> > > > Hi All,
> > > >
> > > Which language? Perl can do this via GnuPG::Interface, PHP can
also do
> >
> > I am just trying to encode a string with a shell script first but I
> > can't seem to find the right options to allow it, as it always seems
to
> > be expecting a file any ideas?
> >
> 
> Via bash, you can just do:
> echo "test text" | gpg -a -r 0x28bcb3e3 -e
> 
> That will output an ASCII armoured block to STDOUT - in this case, the
> screen. You can pipe this to another command or to a file.
> 
> echo "test text" | gpg -a -r 0x28bcb3e3 -e | mail user
> echo "test text" | gpg -a -r 0x28bcb3e3 -e > newfile
> echo "test text" | gpg -a -r 0x28bcb3e3 -e >> appendedfile
> 
> Replace echo "" with the command/script that generates the output to
be
> encrypted. Anything the GnuPG can encrypt will do fine.
> 

Thanks for the replies all

Dee




More information about the Gnupg-users mailing list