[git] gnupg-doc - branch, master, updated. e7b053a6252173c0c4b35d8dfb04947a62d0ff65

by Ben McGinnes cvs at cvs.gnupg.org
Wed Feb 14 09:29:12 CET 2018


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GnuPG website and other docs".

The branch, master has been updated
       via  e7b053a6252173c0c4b35d8dfb04947a62d0ff65 (commit)
       via  a4264f4d8f709aad34c14543037a83c1ca724b59 (commit)
       via  c4373a5b93983cabe0d3ae7e731b73e8a369823c (commit)
      from  4b1a80cab6a49a7a5830b185bad10db8e9944b9b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit e7b053a6252173c0c4b35d8dfb04947a62d0ff65
Author: Ben McGinnes <ben at adversary.org>
Date:   Wed Feb 14 19:27:28 2018 +1100

    Space clraning
    
    * Killed some whitespace.
    * Also updated copyright years here.
    * Added generic copyright to the project.

diff --git a/web/faq/gpgme-faq.org b/web/faq/gpgme-faq.org
index 36936cc..e991a83 100644
--- a/web/faq/gpgme-faq.org
+++ b/web/faq/gpgme-faq.org
@@ -43,7 +43,7 @@
 
    #+begin_example
    import gpg
-   
+
    ciphertext = open("filename.txt.asc", "rb")
    plaintext = gpg.Context().decrypt(ciphertext)
    ciphertext.close()
@@ -53,7 +53,6 @@
    del plaintext
    #+end_example
 
-   
 
 
 

commit a4264f4d8f709aad34c14543037a83c1ca724b59
Author: Ben McGinnes <ben at adversary.org>
Date:   Wed Feb 14 19:22:26 2018 +1100

    GPGME FAQ needs love
    
    * Added what would likely be the most obvious question since Justus'
      blog post on the Python bindings in 2016.
    * Also included a very simple example.

diff --git a/web/faq/gpgme-faq.org b/web/faq/gpgme-faq.org
index 814d12c..36936cc 100644
--- a/web/faq/gpgme-faq.org
+++ b/web/faq/gpgme-faq.org
@@ -27,8 +27,38 @@
    See section 2.3 Largefile support of the GPGME Reference Manual.
 
 
+** Why don't the Python bindings announced in 2016 work?
+
+   The Python bindings have been undergoing continual improvement and
+   fine tuning since the initial announcement.  To obtain the most
+   accurate bindings it is recommended to install the bindings shipped
+   with GPGME itself rather than older versions available on PyPI.
+
+   The Python module has been renamed from =pyme= or =pyme3= and is
+   now simply called =gpg=.  Otherwise the function remains similar
+   and example code is included with the source.
+
+   A basic decryption operation to take an encrypted file and decrypt
+   it with a key in your secret keys would look something like this:
+
+   #+begin_example
+   import gpg
+   
+   ciphertext = open("filename.txt.asc", "rb")
+   plaintext = gpg.Context().decrypt(ciphertext)
+   ciphertext.close()
+   f = open("filename.txt", "wb")
+   f.write(plaintext[0])
+   f.close()
+   del plaintext
+   #+end_example
+
+   
+
 
 
 #   Copyright (C) 2002-2004 Free Software Foundation, Inc.
+#   Copyright (C) 2006-2018 The GnuPG Project.
 #
 #   Written by Werner Koch (2006-04-27 12:50:00).
+#   Ammended by Ben McGinnes (2018-02-14 08:21:32 UTC).

commit c4373a5b93983cabe0d3ae7e731b73e8a369823c
Author: Ben McGinnes <ben at adversary.org>
Date:   Wed Feb 14 18:46:21 2018 +1100

    Grammar
    
    * It was inevitable: Finally had to fix one of my own grammatical errors.  :)

diff --git a/web/documentation/howtos.org b/web/documentation/howtos.org
index 7d100f2..264f425 100644
--- a/web/documentation/howtos.org
+++ b/web/documentation/howtos.org
@@ -115,6 +115,6 @@
    most developers to decipher, or both; Piotr Masełkowski at
    [[https://maslosoft.com/][Maslosoft]] has an alternative guide using the CLI programs.
 
-   This HOWTO is available as:
+   This HOWTO is available:
 
    -  as an online HTML article ( [[https://maslosoft.com/blog/2017/09/12/using-gpg-with-php-on-server/][en]] )

-----------------------------------------------------------------------

Summary of changes:
 web/documentation/howtos.org |  2 +-
 web/faq/gpgme-faq.org        | 29 +++++++++++++++++++++++++++++
 2 files changed, 30 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
The GnuPG website and other docs
http://git.gnupg.org




More information about the Gnupg-commits mailing list