-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Hi
On Saturday 27 September 2014 at 2:18:34 PM, in <mid:CAHDYqcog+fabTOhjks6w=vncty7brgroeh0yz5ek9qnkk4g...@mail.gmail.com>, Sam M wrote: > Hello. > I'd like to encrypt a file with a password as well as > multiple public keys. Is this possible? Yes. > Will this > command below work? > echo "$PW" | gpg2 --batch --passphrase-fd 0 --symmetric > --encrypt --recipient 432E170D279095 --recipient > 07EAE49ADBCBE671 --always-trust --output file.gpg file It didn't when I tried (substituting gpg for gpg2, using keys that are on my keyring, trying various echo strings). At least, I could not decrypt it using a passphrase of "$PW" or $PW or PW or "PW". If I just try:- echo "$PW" | gpg --passphrase-fd 0 --symmetric --output file.gpg file it symmetrically encrypts but I cannot find a passphrase that works for decryption. The following works for me, using GnuPD 1.4.18 on Windows XP:- gpg --symmetric --passphrase string --encrypt --recipient 0xkeyID --output file.gpg file - -- Best regards MFPA mailto:[email protected] When you're caffeinated, all is right with the world -----BEGIN PGP SIGNATURE----- iPQEAQEKAF4FAlQm05pXFIAAAAAALgAgaXNzdWVyLWZwckBub3RhdGlvbnMub3Bl bnBncC5maWZ0aGhvcnNlbWFuLm5ldEJBMjM5QjQ2ODFGMUVGOTUxOEU2QkQ0NjQ0 N0VDQTAzAAoJEKipC46tDG5ppLsD/RxK140ghf1FZKrBXK2Jz9ni8xYZKiWpoDjL 0dZRS3y6E1bjF5Uo5XykaSn2vsqtXyHEuzrBcTJQkGbyRhKpd+yi/GrVClsvHyf4 Mthojf7QImUEyPJUGUgQa5bKiyti/jHNKwmjhzBDA97rInH9jgkI+7hZY1DqZ0yd gDnBG09H =NPUt -----END PGP SIGNATURE----- _______________________________________________ Gnupg-users mailing list [email protected] http://lists.gnupg.org/mailman/listinfo/gnupg-users
