Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

With GPG I can encrypt file symmetrically, as for example described here: How do I symmetrically encrypt a file using gpg?. On decryption it will show (among other lines):

gpg: encrypted with 1 passphrase

How can I add more than one passphrase on encrypting the file?


Notes:

  • I know it is possible to add multiple recipients in the asymmetric encryption.
  • One can encrypt the file both symmetric and asymmetric at the same time. From the manpage of gpg:

    -e     Encrypt data. This option may be combined with --sign (for  a
           signed  and  encrypted  message),  --symmetric (for a message
           that may be decrypted via a secret key or a  passphrase),  [...]
    
  • A message on the gnupg mailing list from 2004 indicates that it is not yet possible. Now almost 10 years later and this might not be correct anymore.

share|improve this question

GnuPG still has not implemented the ability to add multiple passphrases for symmetric encryption.

share|improve this answer
1  
If you could add a (recent) source or reference for this, I'm happy to accept this answer. – gertvdijk Aug 20 '13 at 22:15
    
That's easy to prove, run the command (gpg -c <filename>) on something. You will be prompted for one passphrase and that's it. – Ben Sep 29 '13 at 22:41

Run gpg2 -c on it twice: first, the file you want to encrypt and second, the encrypted file.

share|improve this answer
    
No, this doesn't work. It will result in a GPG-encrypted file within another GPG encrypted file (filename.gpg.gpg). The only way to decrypt it is by using the second and the first passphrase together. This is not what I'm asking for. Please elaborate. – gertvdijk Nov 16 '13 at 14:31
    
Your Q was not entirely clear whether you wanted to require either passphrase or both passphrases to decrypt. This answers if both passphrases are required. – Xen2050 Feb 14 at 14:21

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .