From f0790f224d7af9521efe96e69a8f719fb89a5af2 Mon Sep 17 00:00:00 2001 From: Ben McGinnes Date: Tue, 20 Mar 2018 09:39:48 +1100 Subject: [PATCH] example: encrypt file * Fixed typo in second encryption call. --- lang/python/examples/howto/encrypt-file.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)