Encrypting a file

John Clizbe John at Mozilla-Enigmail.org
Tue Oct 19 22:39:35 CEST 2010


Thomas Chitwood wrote:
> 
> Thanks for the info Doug. I don't think I have ever encrypted a file
> with more than one key. Would the command be something like the example
> below?
> 
> gpg --output test.txt.gpg --encrypt --recipient 359B3EB2 DAE72D59
> test.txt (where 359B3EB2 is their key and DAE72D59 is our key)
> 

-e == --encrypt
-r == --recipient


gpg --output test.txt.gpg -e -r 0x359B3EB2 -r 0xDAE72D59 test.txt

Alternatively, you can set default-recipient in gpg.conf to your key

-- 
John P. Clizbe                      Inet:John (a) Mozilla-Enigmail.org
FSF Assoc #995 / FSFE Fellow #1797  hkp://keyserver.gingerbear.net  or
     mailto:pgp-public-keys at gingerbear.net?subject=HELP

Q:"Just how do the residents of Haiku, Hawai'i hold conversations?"
A:"An odd melody / island voices on the winds / surplus of vowels"

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 499 bytes
Desc: OpenPGP digital signature
URL: </pipermail/attachments/20101019/5e7eb1be/attachment.pgp>


More information about the Gnupg-users mailing list