|  | Commit message (Collapse) | Author | Age | Files | Lines | 
|---|
| | 
| 
| 
| 
| 
| | * Fixed incorrect mention of output prompt referencing secret keys
  when the scripts are only for exporting public keys in whole or
  minimised forms. | 
| | 
| 
| 
| | * fixed three typos which were guaranteed to break said script. | 
| | 
| 
| 
| 
| | * Made sure all example scripts meet PEP8 compliance.
* Required fixing approx. a dozen of them in minor ways. | 
| | 
| 
| 
| 
| 
| | * Added a secret key export variant which saves output as both GPG
  binary and ASCII armoured, plus saves in $GNUPGHOME and uses
  multiple methods of determining what that location is. | 
| | 
| 
| 
| 
| | * Added a key import variant which accesses the SKS keyservers in a
  RESTful fashion and then imports or attempts to import the response. | 
| | 
| 
| 
| 
| 
| 
| 
| | * Example of default exporting keys.
* Example of exporting minimised keys.
* Example of exporting secret keys to a file with correct permissions.
Signed-off-by: Ben McGinnes <[email protected]> | 
| | 
| 
| 
| 
| | * Added an example script for importing a key from a file (either
  ASCII armoured or not). | 
| | 
| 
| 
| 
| | * Added check for if it is run on a Windows system so that the correct
  binary filename is invoked. | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | * Uses the groups module to prepare a list of recipients and encrypt
  to those.
* The main version (encrypt-to-group.py) tries to check for invalid
  recipients, but still falls back to always trust for the second
  encryption attempt.
* The gullible version doesn't try pruning the recipient list at all,
  it just tries to encrypt and if it fails, switches straight to
  always trust.
* The trustno1 version doesn't use the always trust model at all and
  only attempts pruning the list of invalid recipients. | 
| | 
| 
| 
| 
| 
| 
| | * Added a script which demonstrates how the groups module works.
* Script generates Mutt/Neomutt crypt-hooks for every group entry in
  gpg.conf, including those entries for multiple keys (Mutt handles
  that differently). | 
| | 
| 
| 
| 
| 
| 
| | * Fixed the groups.py script so it really does what is described (the
  old code had the same result for groups, group_lines and
  group_lists).
* Updated the corresponding example in the doc to match. | 
| | 
| 
| 
| 
| 
| 
| 
| | * Updated the decryption example code in the HOWTO and the
  corresponding decrypt-file.py script to gracefully handle a
  decryption failure.  This error will always be triggered when GPGME
  is used to try to decrypt an old, MDC-less encrypted message or
  file. | 
| | 
| 
| 
| | * Script to revoke a UID on an existing key. | 
| | 
| 
| 
| | * Added script for signing or certifying keys. | 
| | 
| 
| 
| | * Added script to add a UID to an existing key. | 
| | 
| 
| 
| 
| 
| 
| 
| | * Script to generate a new key with encryption subkey taking input
  from interactive prompts.
* Will also take a passphrase via pinentry and uses passphrase caching
  of five minutes when used in conjunction with the temp homedir
  script. | 
| | 
| 
| 
| | * added passphrase caching of 5 minutes. | 
| | 
| 
| 
| | * Fixed whitespace. | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| | * Script to create a temporary gnupg homedir in the user's directory
  for testing or scripting purposes.
* Creates a hidden directory on POSIX systems with the correct
  permissions (700).
* Creates a gpg.conf in that directory containing the same
  configuration options as used in the "Danger Mouse" example in the
  HOWTO with the correct permissions (600). | 
| | 
| 
| 
| 
| 
| 
| 
| 
| | * Temporarily removing multi-key selection based examples.
* There are a few issues with getting the key selections to play
  nicely with gpg.Context().keylist object types.
* Will troubleshoot them separately and restore them when that's
  worked out, but I don't want these more complicated examples to
  delay merging the HOWTO with master. | 
| | 
| 
| 
| | * 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]> |