Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python.announce > #1036
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <news@google.com> |
| X-Original-To | python-announce@python.org |
| Delivered-To | python-announce-list@mail.python.org |
| X-Spam-Status | OK 0.000 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'python.': 0.02; 'algorithm': 0.04; 'from:addr:yahoo.co.uk': 0.04; 'skip:[ 20': 0.04; 'encoding': 0.05; '(especially': 0.07; 'defaults': 0.07; 'skip:\\ 20': 0.07; 'utf-8': 0.07; 'steve': 0.09; 'derived': 0.09; 'keys,': 0.09; 'pgp': 0.09; 'release.': 0.09; 'subject:version': 0.09; 'unittest': 0.09; 'python': 0.11; 'bug': 0.12; 'cheers': 0.12; '-----end': 0.16; 'bits.': 0.16; 'cipher': 0.16; 'dove': 0.16; 'gnupg': 0.16; 'gpg': 0.16; 'patches': 0.16; 'symmetric': 0.16; 'v1.4.9': 0.16; 'wraps': 0.16; 'subject:python': 0.16; 'skip:= 10': 0.16; 'module': 0.19; 'reports,': 0.19; 'skip:g 40': 0.19; '>>>': 0.22; 'import': 0.22; 'shell': 0.22; 'print': 0.22; 'header:User-Agent:1': 0.23; 'module,': 0.24; 'earlier': 0.24; 'versions': 0.24; 'source': 0.25; 'signed': 0.27; 'subject:) ': 0.29; 'url:code': 0.29; 'andrew': 0.30; 'newer': 0.30; 'specified': 0.30; 'included': 0.31; "skip:' 10": 0.31; 'minor': 0.31; "skip:' 40": 0.31; 'allows': 0.31; 'subject: (': 0.35; 'received:209.85': 0.35; 'received:209.85.220': 0.35; 'test': 0.35; 'received:google.com': 0.35; 'version': 0.36; 'data,': 0.36; 'interact': 0.36; 'list': 0.37; 'project': 0.37; 'received:209': 0.37; 'expected': 0.38; 'feedback': 0.38; 'subject:new': 0.38; 'richard': 0.38; 'does': 0.39; 'skip:p 20': 0.39; 'improved': 0.60; 'most': 0.60; 'length': 0.61; 'new': 0.61; 'privacy': 0.61; 'digital': 0.61; 'information,': 0.61; 'simple': 0.61; 'back': 0.62; 'field': 0.63; 'visit': 0.64; 'url:p': 0.64; 'more': 0.64; 'default': 0.69; 'to:addr:comp-lang-python-announce': 0.70; 'to:addr:moderators.isc.org': 0.77; '"not': 0.84; 'attacks.': 0.84; 'encrypted': 0.91; 'generation.': 0.91; 'enhancement': 0.95 |
| Delivered-To | comp-lang-python-announce@moderators.isc.org |
| X-Google-DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=path:newsgroups:date:complaints-to:injection-info:nntp-posting-host :user-agent:mime-version:message-id:subject:from:injection-date:to :content-type; bh=nNDikxu94WD8TiuNdxN7W2kbqURygk4U1sR/KrACFAQ=; b=Xmh+nWB6PHu5dgx/9wU/EAlLOhopmthOZ6mMabA7Ju4ydcrQ34e+cBcNOYClsn68oD wY4ZToEiNcfzhQ9KRSG5/PsQCnPpX5cKU5HnoR6D1Gp+833QaFG9hC8JB+J4jQ8JIS0e dTeq0eQYL1TE3O+ZZPVnZwIVDtKXaPKY6eEhzQlflo+aIJDJCSYOWXsxHqpUpNMwfM0O MSfiARDgahN5wVb3D3pT1lOkwTpFcYs25U77qeEuOyKAhk6KeYrTIfqlxGvb5irANi5K rsVSknN2YGIvzNudnQVvIUkElec6rSa+muatZ5p5p3w5USIBGseNou0a5KW+k55r1Un0 UqkA== |
| X-Received | by 10.224.165.82 with SMTP id h18mr11028140qay.3.1377884423552; Fri, 30 Aug 2013 10:40:23 -0700 (PDT) |
| X-Received | by 10.49.27.138 with SMTP id t10mr59123qeg.33.1377884423508; Fri, 30 Aug 2013 10:40:23 -0700 (PDT) |
| Newsgroups | comp.lang.python.announce |
| Date | Fri, 30 Aug 2013 10:40:23 -0700 (PDT) |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=82.152.15.113; posting-account=3PSTgxAAAACRZBfTFqcrp20l4rsi4Aaz |
| User-Agent | G2/1.0 |
| MIME-Version | 1.0 |
| Subject | A new version (0.3.5) of python-gnupg has been released. |
| From | Vinay Sajip <vinay_sajip@yahoo.co.uk> |
| Injection-Date | Fri, 30 Aug 2013 17:40:23 +0000 |
| To | comp-lang-python-announce@moderators.isc.org |
| Content-Type | text/plain; charset=ISO-8859-1 |
| X-Mailman-Approved-At | Sun, 01 Sep 2013 16:53:30 +0200 |
| X-BeenThere | python-announce-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| Reply-To | python-list@python.org |
| List-Id | Announcement-only list for the Python programming language <python-announce-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-announce-list>, <mailto:python-announce-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-announce-list/> |
| List-Post | <mailto:python-announce-list@python.org> |
| List-Help | <mailto:python-announce-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-announce-list>, <mailto:python-announce-list-request@python.org?subject=subscribe> |
| Approved | python-announce-list@python.org |
| Message-ID | <mailman.448.1378047211.19984.python-announce-list@python.org> (permalink) |
| Lines | 73 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1378047211 news.xs4all.nl 15867 [2001:888:2000:d::a6]:52529 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python.announce:1036 |
Show key headers only | View raw
A new version of the Python module which wraps GnuPG has been
released.
What Changed?
=============
This is a minor enhancement and bug-fix release. See the project
website ( http://code.google.com/p/python-gnupg/ ) for more
information. Summary:
Added improved shell quoting to guard against shell injection attacks.
Added search_keys() and send_keys() methods to interact with keyservers.
A symmetric cipher algorithm can now be specified when encrypting.
UTF-8 encoding is used as a fall back when no other encoding can be determined.
The key length now defaults to 2048 bits.
A default Name-Comment field is no longer provided during key generation.
What Does It Do?
================
The gnupg module allows Python programs to make use of the
functionality provided by the Gnu Privacy Guard (abbreviated GPG or
GnuPG). Using this module, Python programs can encrypt and decrypt
data, digitally sign documents and verify digital signatures, manage
(generate, list and delete) encryption keys, using proven Public Key
Infrastructure (PKI) encryption technology based on OpenPGP.
This module is expected to be used with Python versions >= 2.4, as it
makes use of the subprocess module which appeared in that version of
Python. This module is a newer version derived from earlier work by
Andrew Kuchling, Richard Jones and Steve Traugott.
A test suite using unittest is included with the source distribution.
Simple usage:
>>> import gnupg
>>> gpg = gnupg.GPG(gnupghome='/path/to/keyring/directory')
>>> gpg.list_keys()
[{
...
'fingerprint': 'F819EE7705497D73E3CCEE65197D5DAC68F1AAB2',
'keyid': '197D5DAC68F1AAB2',
'length': '1024',
'type': 'pub',
'uids': ['', 'Gary Gross (A test user) <gary.gr...@gamma.com>']},
{
...
'fingerprint': '37F24DD4B918CC264D4F31D60C5FEFA7A921FC4A',
'keyid': '0C5FEFA7A921FC4A',
'length': '1024',
...
'uids': ['', 'Danny Davis (A test user) <danny.da...@delta.com>']}]
>>> encrypted = gpg.encrypt("Hello, world!", ['0C5FEFA7A921FC4A'])
>>> str(encrypted)
'-----BEGIN PGP MESSAGE-----\nVersion: GnuPG v1.4.9 (GNU/Linux)\n
\nhQIOA/6NHMDTXUwcEAf
...
-----END PGP MESSAGE-----\n'
>>> decrypted = gpg.decrypt(str(encrypted), passphrase='secret')
>>> str(decrypted)
'Hello, world!'
>>> signed = gpg.sign("Goodbye, world!", passphrase='secret')
>>> verified = gpg.verify(str(signed))
>>> print "Verified" if verified else "Not verified"
'Verified'
For more information, visit http://code.google.com/p/python-gnupg/ -
as always, your feedback is most welcome (especially bug reports,
patches and suggestions for improvement). Enjoy!
Cheers
Vinay Sajip
Red Dove Consultants Ltd.
Back to comp.lang.python.announce | Previous | Next | Find similar | Unroll thread
A new version (0.3.5) of python-gnupg has been released. Vinay Sajip <vinay_sajip@yahoo.co.uk> - 2013-08-30 10:40 -0700
csiph-web