diff options
author | Kali Kaneko <kali@futeisha.org> | 2014-08-18 12:52:52 -0500 |
---|---|---|
committer | Kali Kaneko <kali@futeisha.org> | 2014-08-18 12:52:52 -0500 |
commit | 315514bc033e14f34775123edab4914330213fec (patch) | |
tree | ab6237cb6fa48434f7cfc4c849eb7db16da4c217 /README | |
parent | f070f3d6b39ec0dcb93df4f463280c683f9db839 (diff) | |
parent | 4bd0fa843176a112c054929fbe6dd99f45d718a2 (diff) |
Merge tag 'upstream/1.3.1'
Upstream version 1.3.1
Diffstat (limited to 'README')
-rw-r--r-- | README | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -36,19 +36,18 @@ and import the module like so: The primary interface class you'll likely want to interact with is
[```gnupg.GPG```](https://python-gnupg.readthedocs.org/en/latest/gnupg.html#gpg):
```
->>> gpg = gnupg.GPG(gpgbinary='/usr/bin/gpg',
-... gpghome='./keys',
-... pubring='pubring.gpg',
+>>> gpg = gnupg.GPG(binary='/usr/bin/gpg',
+... homedir='./keys',
+... keyring='pubring.gpg',
... secring='secring.gpg')
->>> batch_key_input = gpg.gen_key_input()
+>>> batch_key_input = gpg.gen_key_input(
+... key_type='RSA',
+... key_length=4096)
>>> print batch_key_input
Key-Type: RSA
Name-Email: isis@wintermute
-Name-Comment: Generated by gnupg.py
Key-Length: 4096
Name-Real: Autogenerated Key
-%pubring /home/isis/code/python-gnupg/keys/pubring.gpg
-%secring /home/isis/code/python-gnupg/keys/secring.gpg
%commit
>>> key = gpg.gen_key(batch_key_input)
|