|  | Commit message (Collapse) | Author | Age | Files | Lines | 
|---|
| | 
| 
| 
| | * Troubleshooting. | 
| | 
| 
| 
| | * Fixed two incorrect Context() objects. | 
| | 
| 
| 
| | * Removed extraneous blank line. | 
| | 
| 
| 
| 
| 
| | * Similar to group-key-selection.py, but does not use an existing
  group from gpg.conf; instead takes multiple key IDs, fingerprints or
  patterns on the command line and adds them to a keylist object. | 
| | 
| 
| 
| 
| 
| 
| | * Begins to string together some of the simpler examples to do more
  useful things.
* Signs and encrypts a file while encrypting to every key in a group
  specified in the gpg.conf file. | 
| | 
| 
| 
| 
| | * Example of preparing a keylist object using an existing group line
  from the gpg.conf file. | 
| | 
| 
| 
| 
| 
| 
| | * Updated usage so it only references importing the final list of
  lists produced.  Trying to use some of the mid-points can have
  unpredictable results (this is part of the problem with work
  arounds). | 
| | 
| 
| 
| | * Added a docstring. | 
| | 
| 
| 
| 
| | * Added example for verifying detached signatures against the files
  they're the signatures for. | 
| | 
| 
| 
| | * Added example to verify normal and clearsigned files. | 
| | 
| 
| 
| | * Added example to make detached signatures of a file with key selection. | 
| | 
| 
| 
| | * Adjusted the doc string. | 
| | 
| 
| 
| | * Fixed minor errors in two doc strings. | 
| | 
| 
| 
| | * Added example to clear sign a file with signing key selection. | 
| | 
| 
| 
| 
| 
| 
| | * Similar to encrypt file except for signing a file in normal mode.
* Noticed additional changes to be made to the howto to match this,
  but they will have to wait due to a power outage (currently running
  on battery and a mobile connection, but that won't last). | 
| | 
| 
| 
| | * Fixed missing parenthesis. | 
| | 
| 
| 
| | * Decrypts a file taking file names as command line parameters. | 
| | 
| 
| 
| 
| 
| 
| | * Added groups selection work around code.
* Intended for use as a module to be imported by other scripts,
  usually with "from groups import group_lists" or "from groups import
  group_lines" or similar. | 
| | 
| 
| 
| 
| | * Nested encryption in try/except statement in case recipient key is
  untrusted or invalid. | 
| | 
| 
| 
| 
| 
| 
| | * Example to sign and encrypt a file.
* Similar to encrypt-file.py except all keys are considered trusted
  and signs with the default key.
* Also encrypts to the default key. | 
| | 
| 
| 
| | * Fixed typo in second encryption call. | 
| | 
| 
| 
| 
| 
| 
| 
| 
| | * Example to encrypt a file to a single key.
* Takes key ID and/or fpr as a CLI parameter.
* Takes path and filename as a CLI parameter.
* Encrypts to specified key only, no signing and writes the output in
  both ASCII armoured and GPG binary formats with output filenames
  based on input filename. | 
| | 
| 
| 
| 
| | * Added script wo count the number of keys in both the public and
  secret key stores. | 
| | 
| 
| 
| 
| | * Explicitly stated that all this code is released under the GPLv2+
  and the LGPLv2.1+. | 
| | 
| 
| 
| 
| 
| 
| | * Added the same license as used with the HOWTO.
* Since these examples are so basic, they'll be dual licensed the same
  as GPGME itself (otherwise it would slip too dangerously against the
  need for permissive licensing of crypto libraries). | 
| | 
| 
| 
| 
| 
| | * Added reference to location where all the examples included in the
  HOWTO will be available as executable scripts.
* Included a short README file in that location. | 
| | 
| 
| 
| 
| 
| 
| | * Since we don't want to encourage accessing the low level functions
  (e.g. op_encrypt), but since this example can still be useful to
  understand, renaming it and will add new encryption examples to
  match the instructions in the HOWTO. | 
| | 
| 
| 
| 
| 
| 
| | --
Patch provided by ka7 in dev.gnupg.org
Differential D423 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | * lang/python/gpg/constants/sig/notation.py: New file.
* lang/python/gpg/constants/sig/__init__.py: Import new module.
* lang/python/examples/assuan.py: Use more specific module for
constants, e.g. 'protocol.ASSUAN' instead of 'PROTOCOL_ASSUAN'.
* lang/python/examples/testCMSgetkey.py: Likewise.
* lang/python/tests/initial.py: Likewise.
* lang/python/tests/t-callbacks.py: Likewise.
* lang/python/tests/t-decrypt-verify.py: Likewise.
* lang/python/tests/t-decrypt.py: Likewise.
* lang/python/tests/t-edit.py: Likewise.
* lang/python/tests/t-encrypt-large.py: Likewise.
* lang/python/tests/t-encrypt-sign.py: Likewise.
* lang/python/tests/t-encrypt-sym.py: Likewise.
* lang/python/tests/t-encrypt.py: Likewise.
* lang/python/tests/t-export.py: Likewise.
* lang/python/tests/t-file-name.py: Likewise.
* lang/python/tests/t-idiomatic.py: Likewise.
* lang/python/tests/t-import.py: Likewise.
* lang/python/tests/t-keylist.py: Likewise.
* lang/python/tests/t-protocol-assuan.py: Likewise.
* lang/python/tests/t-sig-notation.py: Likewise.
* lang/python/tests/t-sign.py: Likewise.
* lang/python/tests/t-signers.py: Likewise.
* lang/python/tests/t-trustlist.py: Likewise.
* lang/python/tests/t-verify.py: Likewise.
* lang/python/tests/t-wait.py: Likewise.
Signed-off-by: Justus Winter <[email protected]> | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | * examples/verifydetails.py: Only import the topmost module 'gpg' and
update the code accordingly.
* tests/support.py: Likewise.
* tests/t-callbacks.py: Likewise.
* tests/t-data.py: Likewise.
* tests/t-decrypt-verify.py: Likewise.
* tests/t-decrypt.py: Likewise.
* tests/t-edit.py: Likewise.
* tests/t-encrypt-large.py: Likewise.
* tests/t-encrypt-sign.py: Likewise.
* tests/t-encrypt-sym.py: Likewise.
* tests/t-encrypt.py: Likewise.
* tests/t-export.py: Likewise.
* tests/t-file-name.py: Likewise.
* tests/t-import.py: Likewise.
* tests/t-keylist.py: Likewise.
* tests/t-sig-notation.py: Likewise.
* tests/t-sign.py: Likewise.
* tests/t-signers.py: Likewise.
* tests/t-trustlist.py: Likewise.
* tests/t-verify.py: Likewise.
* tests/t-wait.py: Likewise.
* tests/t-wrapper.py: Likewise.
Signed-off-by: Justus Winter <[email protected]> | 
| | 
| 
| 
| 
| 
| 
| 
| | This follows weeks of discussion on the gnupg-devel mailing list.
Hopefully it will make it easier for people using Python to use GnuPG
in the future.
Signed-off-by: Daniel Kahn Gillmor <[email protected]> | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| | * lang/python/pyme/core.py (Core.get_key): Return public keys by
default, improve docstring.
* lang/python/examples/testCMSgetkey.py: Update example.
* lang/python/examples/verifydetails.py: Likewise.
GnuPG-bug-id: 2751
Signed-off-by: Justus Winter <[email protected]> | 
| | 
| 
| 
| 
| 
| 
| | * lang/python/examples/inter-edit.py: Fix example.
Fixes-commit: a458e7fe
Signed-off-by: Justus Winter <[email protected]> | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | * lang/python/examples/inter-edit.py: Update example.
* lang/python/gpgme.i (gpgme_edit_cb_t): Turn into
'gpgme_interact_cb_t'.
* lang/python/helpers.c (_pyme_edit_cb): Turn into
'_pyme_interact_cb_t'.
* lang/python/private.h (_pyme_edit_cb): Likewise.
* lang/python/pyme/constants/__init__.py: Replace numeric status codes
with the keywords.
* lang/python/pyme/constants/status.py: Likewise.
* lang/python/pyme/core.py (Context.interact): New method.
(Context.op_edit): Deprecate, update docstring, implement using
Context.interact.
* lang/python/tests/t-edit.py: Test both interfaces.
Signed-off-by: Justus Winter <[email protected]> | 
| | 
| 
| 
| 
| 
| 
| 
| 
| | * lang/python/examples/encrypt-to-all.py: Drop unused import of 'os'.
* lang/python/examples/signverify.py: Likewise.
* lang/python/examples/simple.py: Likewise.
* lang/python/examples/verifydetails.py: Likewise.
Signed-off-by: Justus Winter <[email protected]> | 
| | 
| 
| 
| 
| | --
Signed-off-by: Justus Winter <[email protected]> | 
| | 
| 
| 
| 
| | --
Signed-off-by: Justus Winter <[email protected]> | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | * lang/python/examples/Examples.rst: Delete file.
* lang/python/examples/t-edit.py: Likewise.  This is actually a test
case and has been moved to 'tests'.
* lang/python/examples/assuan.py: New file.
* lang/python/examples/decryption-filter.py: Likewise.
* lang/python/examples/delkey.py: Modernize.
* lang/python/examples/encrypt-to-all.py: Likewise.
* lang/python/examples/exportimport.py: Likewise.
* lang/python/examples/genkey.py: Likewise.
* lang/python/examples/inter-edit.py: Likewise.
* lang/python/examples/sign.py: Likewise.
* lang/python/examples/signverify.py: Likewise.
* lang/python/examples/simple.py: Likewise.
* lang/python/examples/testCMSgetkey.py: Likewise.
* lang/python/examples/verifydetails.py: Likewise.
Signed-off-by: Justus Winter <[email protected]> | 
| | 
| 
| 
| 
| | --
Signed-off-by: Justus Winter <[email protected]> | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | * lang/python/examples/delkey.py: Clean up example.
* lang/python/examples/encrypt-to-all.py: Likewise.
* lang/python/examples/genkey.py: Likewise.
* lang/python/examples/inter-edit.py: Likewise.
* lang/python/examples/sign.py: Likewise.
* lang/python/examples/signverify.py: Likewise.
* lang/python/examples/simple.py: Likewise.
* lang/python/examples/t-edit.py: Likewise.
* lang/python/examples/verifydetails.py: Likewise.
* lang/python/pyme/__init__.py: Likewise.
Signed-off-by: Justus Winter <[email protected]> | 
| | 
| 
| 
| 
| 
| | * lang/python/examples/t-edit.py: Check if key is found.
Signed-off-by: Justus Winter <[email protected]> | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | * lang/python/gpgme.i: Adjust to Python3's string type being
'Unicode', not 'bytes'.  Fix type checking.
* lang/python/core.py (Data.write): Add docstring mentioning the
expected type of parameter 'buffer'.
(Data.read): Adjust read loop.  Also, use a saner chunk size, and join
all chunks at the end instead of adding them.
* lang/python/examples/simple.py: Adjust example.
Signed-off-by: Justus Winter <[email protected]> | 
| | 
| 
| 
| 
| 
| 
| | * lang/python/examples/simple.py: Flush stdout, encode name as
UTF-8 before passing it to GPGME.
Signed-off-by: Justus Winter <[email protected]> | 
| | 
| 
| 
| 
| 
| | Cherry picked from 0267c151.
Signed-off-by: Justus Winter <[email protected]> | 
| | 
| 
| 
| 
| | --
Signed-off-by: Justus Winter <[email protected]> | 
|  | --
Signed-off-by: Justus Winter <[email protected]> |