Python bindings HOWTO proof reader request
Jakub Wilk
jwilk at jwilk.net
Thu Mar 15 17:09:19 CET 2018
* Ben McGinnes <ben at adversary.org>, 2018-03-16, 00:00:
>https://files.gnupg.net/file/data/ossmg4ung2hcpyyuks6j/PHID-FILE-xgbofmytge7fzn3u5kuc/GPGMEpythonHOWTOen.org
I had a superficial look at this:
>later version) and the GNU Lesser Public License version 2.1 (or
Common misspelling of the license name. Should be:
GNU Lesser *General* Public License
>strongly anticipated (e.g selecting and encrypting to a key known
Missing full stop after "g".
>afile = open("secret_plans.txt.asc", "wb")
>afile.write(cipher.read())
>afile.close()
More idiomatic and with better error handling:
with open("secret_plans.txt.asc", "wb") as afile:
afile.write(cipher.read())
>c.home_dir = "/tmp/dmgpg"
Looks like insecure use of /tmp.
--
Jakub Wilk
More information about the Gnupg-devel
mailing list