aboutsummaryrefslogtreecommitdiffstats
path: root/lang/py3-pyme/examples/genkey.py
diff options
context:
space:
mode:
authorBen McGinnes <[email protected]>2015-05-16 16:30:13 +0000
committerBen McGinnes <[email protected]>2015-05-16 16:30:13 +0000
commit4fc123981514c7087114e08ee8ca63de1a1db59f (patch)
tree8466cf1d6911051e2940203b9bf49844daebec20 /lang/py3-pyme/examples/genkey.py
parentString type (diff)
downloadgpgme-4fc123981514c7087114e08ee8ca63de1a1db59f.tar.gz
gpgme-4fc123981514c7087114e08ee8ca63de1a1db59f.zip
Updated string and key data
* Text changed to byte literals. * Changed key type to RSA/RSA. * Changed expiry to the future (2020).
Diffstat (limited to '')
-rwxr-xr-xlang/py3-pyme/examples/genkey.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/lang/py3-pyme/examples/genkey.py b/lang/py3-pyme/examples/genkey.py
index a9875582..6c4b2d8c 100755
--- a/lang/py3-pyme/examples/genkey.py
+++ b/lang/py3-pyme/examples/genkey.py
@@ -28,16 +28,16 @@ c.set_progress_cb(callbacks.progress_stdout, None)
# This example from the GPGME manual
-parms = """<GnupgKeyParms format="internal">
-Key-Type: DSA
-Key-Length: 1024
-Subkey-Type: ELG-E
-Subkey-Length: 1024
+parms = b"""<GnupgKeyParms format="internal">
+Key-Type: RSA
+Key-Length: 2048
+Subkey-Type: RSA
+Subkey-Length: 2048
Name-Real: Joe Tester
Name-Comment: with stupid passphrase
Name-Email: [email protected]
Passphrase: abcdabcdfs
-Expire-Date: 2010-08-15
+Expire-Date: 2020-12-31
</GnupgKeyParms>
"""