Sign+Encrypt a message
Robert J. Hansen
rjh at sixdemonbag.org
Fri Apr 27 10:15:19 CEST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
> One of the features of PGP is its ability to sign and encrypt from a
> single command. Is it possible to do the same with gpg?
gpg --armor --encrypt --sign \
--recipient [recipient1] --recipient [recipient2] \
--local-user [signing-key1] --local-user [signing-key2] \
[filename]
That's meant to be placed all on a single line. You can have as many
repetitions of --recipient and --local-user as you need.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
iFYEAREIAAYFAkYxsRcACgkQf2XByo0Cu7PzRQDfebJAoXw3bEW8jiCUcnRgjeV5
xjPbSaOmH0e4DADfQLdICmoViebu3RuVB0mmZTq3xyOwFc4u81apfIkBHAQBAQgA
BgUCRjGxFwAKCRC3APSC/q+BCRq3B/9gValRhyHF6wuNMfqfwICns6oTcemor1RR
2zcpJvjK1nEm7KQ26x9Zzf+jWFE6D6e44pTu7EzW2B6eC8ZofnIMooBJ7oC9fsaJ
K5h24rXFz/RCFhkAUosmZLkTvZJBmdu0eMO2EFrESEZmfBKLS0kiKIKeYbw8gZ1i
Hlwt2aLZ5KXiawQulyzaYDjnEv/vwXl7b4JLyUXl7cAZB0jzJVV4YPTUKQqs17Uv
JHUrlg8XEiyQTsAAZoFnkCqLviItiFpdIRCwUNzTt3BAqDFvWdqEQUOoOsLIBW49
o+Mi9F7gR4kk8Nxs5/XSCl66WXYiMRpNq1NDimFjHlJSRjCs/AIJ
=+Ks+
-----END PGP SIGNATURE-----
More information about the Gnupg-users
mailing list