3 ms·
you mean you have for N users N copies of the file, each encrypted with a different key, or one file that is encrypted with N keys and then you need N keys to d
by maayank 14y ago
you mean you have for N users N copies of the file, each encrypted with a different key, or one file that is encrypted with N keys and then you need N keys to decode?
- agranig 14y agoYou've one copy of the file, encrypted with N public keys. Each of the corresponding private keys can decrypt the files. Assuming you've all the public keys in your keychain, then for each key you pass "-r <email>" for the encryption, like "gpg -e -r foo@bar.com -r baz@bar.com plain.txt", and for decryption you do something like "gpg --output plain.txt -d plain.txt.gpg".
- haldean 14y agoYou can encrypt a file to N users in GPG with only one output file, and require only one of the corresponding private keys to decrypt. More information here [0]; TLDR, it encrypts with a symmetric key then includes the symmetric key encrypted with the public key of each recipient. [0]: http://security.stackexchange.com/questions/8245/gpg-file-size-with-multiple-recipients http://security.stackexchange.com/questions/8245/gpg-file-si...