encrypt multiple files into one singlefile and then decrypt back the original multipe files
Anthony E. Greene
Tue Oct 1 21:51:02 2002
-----BEGIN PGP SIGNED MESSAGE-----
On 01-Oct-2002/14:21 -0400, firstname.lastname@example.org wrote:
>Can gpg take several cleartext input files and make a single encrypted
>file that when decrypted creates the original multiple cleartext files?
>The reason I ask is on an on-going basis. When I need to send files to
>a remote user, there usually are several files to be sent. Currently
>if there are five files to be sent, then five ".asc" files are created
>and sent. I'd like to issue one encrypt command on multiple files
>get a single encrypted output and e-maili that single file.
Create a ZIP archive that contains the files, then encrypt the ZIP file.
Assuming you're on a *nix box, you can do this in one step like this:
zip - file1 file2 file3 file4 file5 | gpg -eat > outfile.zip.asc
If you have the old DOS PKZip on a Winbox, this batch file should work:
pkzip outfile.zip file1 file2 file3 file4 file5
gpg -eat outfile.zip
The output should be in outfile.zip.asc.
Anthony E. Greene <mailto:email@example.com>
OpenPGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26 C484 A42A 60DD 6C94 239D
AOL/Yahoo Chat: TonyG05 HomePage: <http://www.pobox.com/~agreene/>
Linux: the choice of a GNU Generation. <http://www.linux.org/>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Anthony E. Greene 0x6C94239D <firstname.lastname@example.org>
-----END PGP SIGNATURE-----