From 325b0ca341ae3ac8c3232f557ea2c381b4843969 Mon Sep 17 00:00:00 2001 From: Ben McGinnes Date: Sun, 17 May 2015 04:22:53 +1000 Subject: [PATCH] More byte changes and passphrase changes * exportimport works, but will still segfault for an as yet unknown reason. * genkey produces a traceback error, but does create the key as intended. * matched passphrase in signverify. --- lang/py3-pyme/examples/exportimport.py | 2 +- lang/py3-pyme/examples/genkey.py | 2 +- lang/py3-pyme/examples/signverify.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lang/py3-pyme/examples/exportimport.py b/lang/py3-pyme/examples/exportimport.py index 45f2f518..54204fb7 100755 --- a/lang/py3-pyme/examples/exportimport.py +++ b/lang/py3-pyme/examples/exportimport.py @@ -27,7 +27,7 @@ core.check_version(None) expkey = core.Data() c = core.Context() c.set_armor(1) -user = "joe@example.org" +user = b"joe@example.org" print(" - Export %s's public keys - " % user) c.op_export(user, 0, expkey) diff --git a/lang/py3-pyme/examples/genkey.py b/lang/py3-pyme/examples/genkey.py index f2998cce..14497eb7 100755 --- a/lang/py3-pyme/examples/genkey.py +++ b/lang/py3-pyme/examples/genkey.py @@ -36,7 +36,7 @@ Subkey-Length: 2048 Name-Real: Joe Tester Name-Comment: with stupid passphrase Name-Email: joe@example.org -Passphrase: Crypt0-R0cks +Passphrase: Crypt0R0cks Expire-Date: 2020-12-31 """ diff --git a/lang/py3-pyme/examples/signverify.py b/lang/py3-pyme/examples/signverify.py index 6c688389..e2f80357 100755 --- a/lang/py3-pyme/examples/signverify.py +++ b/lang/py3-pyme/examples/signverify.py @@ -41,7 +41,7 @@ if not c.signers_enum(0): # This is a map between signer e-mail and its password passlist = { - "": "Crypt0-R0cks" + "": "Crypt0R0cks" } # callback will return password based on the e-mail listed in the hint.