diff options
author | Ben McGinnes <[email protected]> | 2018-03-19 22:39:48 +0000 |
---|---|---|
committer | Ben McGinnes <[email protected]> | 2018-03-19 22:39:48 +0000 |
commit | f0790f224d7af9521efe96e69a8f719fb89a5af2 (patch) | |
tree | 80c7ef078583910c3bfeb53187c64ec21f6f7490 /lang/python/examples/howto/encrypt-file.py | |
parent | example: encrypt file (diff) | |
download | gpgme-f0790f224d7af9521efe96e69a8f719fb89a5af2.tar.gz gpgme-f0790f224d7af9521efe96e69a8f719fb89a5af2.zip |
example: encrypt file
* Fixed typo in second encryption call.
Diffstat (limited to 'lang/python/examples/howto/encrypt-file.py')
-rwxr-xr-x | lang/python/examples/howto/encrypt-file.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lang/python/examples/howto/encrypt-file.py b/lang/python/examples/howto/encrypt-file.py index 718c7157..8aee52ad 100755 --- a/lang/python/examples/howto/encrypt-file.py +++ b/lang/python/examples/howto/encrypt-file.py @@ -58,7 +58,7 @@ with gpg.Context(armor=True) as ca: fa.write(ciphertext) with gpg.Context() as cg: - ciphertext, result, sign_result = ca.encrypt(text, recipients=rkey, + ciphertext, result, sign_result = cg.encrypt(text, recipients=rkey, sign=False) with open("{0}.gpg".format(filename), "wb") as fg: fg.write(ciphertext) |