isislovecruft / python-gnupg

A modified version of python-gnupg, including security patches, extensive documentation, and extra features.
Other
424 stars 172 forks source link

Inability to encrypt and sign at the same time #233

Open Lvl4Sword opened 6 years ago

Lvl4Sword commented 6 years ago

Unlike what the project was forked from ( https://bitbucket.org/vinay.sajip/python-gnupg ), this fork doesn't have the ability to encrypt and sign at the same time.

Is there a plan or roadmap for this?

kiorq commented 3 years ago

Answering for others in the future who may face this issue, like I did this week :).

According to the encrypt function code, when the default_key argument is passed to the encrypt function. The gpg encrypt command is called with the --sign argument in the shell. This also means the --default-key argument is also set as well (based on the value passed as the default_key arg in the encrypt function), which could be a fingerprint or a keyid.

Lvl4Sword commented 3 years ago

I completely forgot I even made this issue. I've been using the version in my original post, as this one doesn't seem to be updated.