Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Can you put multiple files in a GPG/PGP encrypted file?

Just wondering.

share|improve this question

1 Answer 1

up vote 5 down vote accepted

On Linux, I'd tarball and compress the files first, then encrypt them. I do not believe GPG can encrypt multiple files in one go.

share|improve this answer
3  
Spot-on. PGP/GPG does encryption. In order to encrypt multiple files, you'd need to archive them in something like tar, zip, rar, etc. The newfangled commercial Windows versions of PGP may be able to do such thing (see the PGP-Zip). I do know that GPG and "classic" command line PGP does not. –  Geoff Fritz Nov 30 '09 at 17:13
1  
GPG probably never will; the idea is that you can simply encrypt a tarball instead. tar is a lot better at concatenating files than gpg is; if something replaces tar you can still use gpg to encrypt the new program's output rather than having to fix gpg to support that new file format. Notably there are exceptions to this (tar will automatically handle gzip/bzip2 files) but it's been important to Unix, Linux, GNU et al. to swap out parts of the toolchain when needed. –  Broam Nov 30 '09 at 18:22
2  
GPG and PGP do compression (to increase security) - so encrypting a .tar is enough, no need to gzip it. –  grawity Nov 30 '09 at 20:14

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.