aboutsummaryrefslogtreecommitdiffstats
path: root/lang (follow)
Commit message (Collapse)AuthorAgeFilesLines
* example: key signingBen McGinnes2018-03-281-0/+63
| | | | * Added script for signing or certifying keys.
* doc: python bindings howtoBen McGinnes2018-03-281-1/+1
| | | | * Fixed a typo.
* docs python bindings howtoBen McGinnes2018-03-281-16/+19
| | | | | * PEP8 compliance: a collection of minor edits across multiple example code snippets.
* example: add user IDBen McGinnes2018-03-281-0/+62
| | | | * Added script to add a UID to an existing key.
* doc: python bindings howtoBen McGinnes2018-03-271-6/+6
| | | | * Fixed some minor PEP8 compliance issues in the key creation examples.
* example: key creationBen McGinnes2018-03-271-0/+95
| | | | | | | | * 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.
* script: temp homedir configBen McGinnes2018-03-271-2/+9
| | | | * added passphrase caching of 5 minutes.
* doc: python bindings howtoBen McGinnes2018-03-251-0/+1
| | | | | | | | * Testing the addition of a HTML header set in org-mode in order to had RSS update links for files. * This should work with any [X]HTML export from current versions of Org-Mode, but if it also works on website generated pages then it'll tick off one of the wishlist itmes.
* script: temp homedirhowto-update-01Ben McGinnes2018-03-251-1/+1
| | | | * Fixed whitespace.
* doc: python bindings howtoBen McGinnes2018-03-251-0/+4
| | | | | * Added a reference to new script which will setup a temporary homedir for a user.
* script: temporary homedir creationBen McGinnes2018-03-251-0/+119
| | | | | | | | | | * 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).
* doc: python bindings howtoBen McGinnes2018-03-241-4/+4
| | | | | * Fixed the plaintext, result and verify_result references in the decryption section.
* Merge branch 'json-tool'Werner Koch2018-03-231-0/+1
|\
| * Merge branch 'master' into json-toolWerner Koch2018-03-202-0/+6
| |\
| * | json: Add framework for the gpgme-json toolWerner Koch2018-03-161-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | * src/gpgme-json.c: New. * src/Makefile.am (bin_PROGRAMS): Add gpgme-json. (gpgme_json_SOURCES, gpgme_json_LDADD): New. Signed-off-by: Werner Koch <[email protected]>
* | | doc: python bindings howtoBen McGinnes2018-03-211-1/+1
| | | | | | | | | | | | * Fixed table.
* | | doc and examples: python bindings HOWTOBen McGinnes2018-03-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added GPGME Python bindings HOWTO in Australian/British English. ** en-US "translation" still to be done. * Added several example scripts comprised of the "Basic Functions" section of the HOWTO (plus the work-around at the end). ** As these scripts are very basic examples they are released under both the GPLv2+ and the LGPLv2.1+ (just like GPGME itself). Signed-off-by: Ben McGinnes <[email protected]>
* | | Merge branch 'ben/docs/2018-03' of ssh+git://playfair.gnupg.org/git/gpgme ↵Ben McGinnes2018-03-2114-1/+2090
|\ \ \ | |_|/ |/| | | | | into ben/docs/2018-03
| * | examples: multi-key selection operationsben/docs/2018-03Ben McGinnes2018-03-213-190/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
| * | example: group encryptionBen McGinnes2018-03-211-1/+1
| | | | | | | | | | | | * Troubleshooting.
| * | examples: encryptionBen McGinnes2018-03-212-2/+2
| | | | | | | | | | | | * Fixed two incorrect Context() objects.
| * | example: key selectionBen McGinnes2018-03-211-1/+0
| | | | | | | | | | | | * Removed extraneous blank line.
| * | example: key selectionBen McGinnes2018-03-211-0/+52
| | | | | | | | | | | | | | | | | | * 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.
| * | example: sign and encrypt to groupBen McGinnes2018-03-211-0/+83
| | | | | | | | | | | | | | | | | | | | | * 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: group key selectionBen McGinnes2018-03-211-0/+56
| | | | | | | | | | | | | | | * Example of preparing a keylist object using an existing group line from the gpg.conf file.
| * | example groups work aroundBen McGinnes2018-03-211-1/+1
| | | | | | | | | | | | | | | | | | | | | * 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).
| * | example: groupsBen McGinnes2018-03-211-0/+6
| | | | | | | | | | | | * Added a docstring.
| * | example: verify signaturesBen McGinnes2018-03-211-0/+64
| | | | | | | | | | | | | | | * Added example for verifying detached signatures against the files they're the signatures for.
| * | example: verify signed fileBen McGinnes2018-03-211-0/+61
| | | | | | | | | | | | * Added example to verify normal and clearsigned files.
| * | doc: python bindings howtoBen McGinnes2018-03-211-1/+1
| | | | | | | | | | | | * Fixed minor error in one of the verification examples.
| * | example: detach sign fileBen McGinnes2018-03-211-0/+64
| | | | | | | | | | | | * Added example to make detached signatures of a file with key selection.
| * | example: encrypt-sign-file.pyBen McGinnes2018-03-211-2/+2
| | | | | | | | | | | | * Adjusted the doc string.
| * | examples: doc stringsBen McGinnes2018-03-212-2/+4
| | | | | | | | | | | | * Fixed minor errors in two doc strings.
| * | example: clear signingBen McGinnes2018-03-211-0/+56
| | | | | | | | | | | | * Added example to clear sign a file with signing key selection.
| * | doc: python bindings howtoBen McGinnes2018-03-211-15/+12
| | | | | | | | | | | | * deconstructed and fixed all three signing methods.
| * | example: sign fileBen McGinnes2018-03-211-0/+63
| | | | | | | | | | | | | | | | | | | | | * 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).
| * | doc: python bindings howtoBen McGinnes2018-03-201-2/+2
| | | | | | | | | | | | * Fixed typos in examples.
| * | example: keycountBen McGinnes2018-03-201-1/+1
| | | | | | | | | | | | * Fixed missing parenthesis.
| * | example: decrypt fileBen McGinnes2018-03-201-0/+44
| | | | | | | | | | | | * Decrypts a file taking file names as command line parameters.
| * | example: groups work-aroundBen McGinnes2018-03-201-0/+44
| | | | | | | | | | | | | | | | | | | | | * 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.
| * | example: encrypt fileBen McGinnes2018-03-191-8/+14
| | | | | | | | | | | | | | | * Nested encryption in try/except statement in case recipient key is untrusted or invalid.
| * | example: sign and encrypt fileBen McGinnes2018-03-191-0/+70
| | | | | | | | | | | | | | | | | | | | | * 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.
| * | example: encrypt fileBen McGinnes2018-03-191-1/+1
| | | | | | | | | | | | * Fixed typo in second encryption call.
| * | example: encrypt fileBen McGinnes2018-03-191-0/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
| * | example: python bindings key countBen McGinnes2018-03-191-0/+42
| | | | | | | | | | | | | | | * Added script wo count the number of keys in both the public and secret key stores.
| * | doc: python bindings examplesBen McGinnes2018-03-191-0/+6
| | | | | | | | | | | | | | | * Explicitly stated that all this code is released under the GPLv2+ and the LGPLv2.1+.
| * | doc: python bindings example READMEBen McGinnes2018-03-191-0/+28
| | | | | | | | | | | | | | | | | | | | | * 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).
| * | docs: python bindings examplesBen McGinnes2018-03-192-1/+34
| | | | | | | | | | | | | | | | | | * 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.
| * | example: python bindings encryptionBen McGinnes2018-03-191-0/+0
| | | | | | | | | | | | | | | | | | | | | * 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.
| * | doc: python bindings howtoBen McGinnes2018-03-191-5/+5
| | | | | | | | | | | | | | | * Slight python-gnupg clarification. See also this thread: https://lists.gnupg.org/pipermail/gnupg-devel/2018-March/033528.html