isislovecruft / python-gnupg

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

Detached signatures do not work as expected #243

Open jannschu opened 5 years ago

jannschu commented 5 years ago

Hi,

gpg.sign(data, detach=True)

and

gpg.sign(data, detach=False)

produce idential outputs. This is related to #180. Adding clearsign=False makes it work. This seems an API bug.

Possible fix: Change the default parameter values from False to None und adjust the logic.