Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--hidden-recipient #30

Closed
edemocracy opened this issue Nov 11, 2013 · 2 comments
Closed

--hidden-recipient #30

edemocracy opened this issue Nov 11, 2013 · 2 comments
Assignees
Milestone

Comments

@edemocracy
Copy link

Please implement the --hidden-recipient / -R flag
thank you

@ghost ghost assigned isislovecruft Dec 4, 2013
@isislovecruft
Copy link
Owner

@edemocracy This is actually already implemented! The only thing is that the --hidden-recipient and --throw-keyids options should be added to hex_options and none_options respectively, in _parsers._get_options_group(). After that's added, then, to use --hidden-recipient, one would do:

import gnupg

keyid = 'a3adb67a2cdb8b35'
gpg = gnupg.GPG(homedir='./hidden-recipient-test')
gpg.options = ['--hidden-recipient %s' % keyid]
key = gpg.recv_keys('hkp://pgp.mit.edu', keyid)
fingerprint = key.fingerprints[0]
message = 'the secret words are squeamish ossifrage'
encrypted = gpg.encrypt(message, fingerprint)

I totally agree that this should be added.

isislovecruft added a commit that referenced this issue Dec 5, 2013
 * ADD `--hidden-encrypt-to` and `--hidden-recipient` options to
   `hex_options` in gnupg._parsers._get_options_group().
 * ADD `--throw-keyids` option to `none_options` in
   gnupg._parsers._get_options_group().
 * FIXES issue #30:
   #30
 * NEEDS unittests still.
@isislovecruft isislovecruft modified the milestones: 1.2.8, 1.2.6 Jul 9, 2014
@isislovecruft isislovecruft modified the milestones: 1.3.2, 1.3.x Sep 27, 2014
@isislovecruft
Copy link
Owner

Okay, 2bac4a6 is merged to develop for release in version 1.3.2. It only whitelists the relevant GnuPG binary flags… it doesn't really make it easy to use the "anonymous" encryption feature.

Future work should include probably include adding some sort of hide_recipients=False parameter to the gnupg._meta.GPGBase._encrypt() method… I made Issue #67 for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant