On Thu, 08 Sep 2011 17:02:07 -0400 Jean-David Beyer <[email protected]> wrote: >[email protected] wrote: >> On Thu, 08 Sep 2011 16:33:38 -0400 Daniel Kahn Gillmor >> <[email protected]> wrote: >> >>> Alternately, you could feed your data directly on stdin from >the >>> command >>> line with a pipe, like this: >>> >>> printf "just a test" | gpg --encrypt --armor -r $recipient >> >> Thanks! >> worked perfectly. >> >Why send it to me encrypted, when I you did not use my public key >to >encrypt it? Alternatively, you need to send me your private key. >You >would be an idiot to send anyone your private key.
----- It was just to see if gnupg could encrypt the plaintext as input on the screen, and showing that DGK' suggestion worked, so I encrypted it to a testkey. The same principle works very easily with: $ printf "just a test" | gpg -c -a -o filesave.asc or $ printf "just a test" | gpg -a -r yourkey -o filesave.asc which is something I would not have known before DGK's suggestion. vedaal _______________________________________________ Gnupg-users mailing list [email protected] http://lists.gnupg.org/mailman/listinfo/gnupg-users
