GithubHelp home page GithubHelp logo

evilscientress / pgpmime Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kianga/pgpmime

0.0 1.0 0.0 140 KB

Decrypt PGP/MIME messages on the command line

License: GNU General Public License v3.0

Python 100.00%

pgpmime's Introduction

pgpmime-decrypt is a Python 3 script for decrypting PGP/MIME messages on
the command line. It requires a working GnuPG 2 installation and, of course,
the correct secret key.

WARNING: THIS SCRIPT HAS NOT BEEN TESTED THOROUGHLY AND IS
NOT RECOMMENDED FOR PRODUCTION USE. ALWAYS KEEP BACKUPS OF YOUR MESSAGES!

Dependencies:

- GnuPG 2 <https://www.gnupg.org/>
- Python 3.4 <https://www.python.org/>
- PyGPGME 0.3 <https://launchpad.net/products/pygpgme>

On Debian (Jessie), you can install all dependencies with this command:

$ apt-get install python3-gpgme

Usage as a filter:

$ pgpmime-decrypt < input > output

Usage for operating on a message file in place:

$ pgpmime-decrypt -f filename

Note that pgpmime-decrypt only processes a single message at time; it does
not handle mbox files. If you feed it an mbox, it might even read the first
message from it and discard the rest (I have not tested this), so be careful.

To keep the original message as a message/rfc822 attachment, you can add
the --keep option. This is strongly recommended, though some mail clients
may not be able to display these attachments correctly, and the message
contents will probably be displayed twice (once for the decrypted part,
and once again for the attachment).

To use this script as an action in Claws Mail, so you can permanently
decrypt messages from the GUI, choose Configuration - Actions and enter
the following shell command:

/path/to/pgpmime-decrypt -f "%f"

GitHub: https://github.com/kianga/pgpmime
Send feedback to: René Puls <[email protected]> (PGP key: D8C3477F8B64D678)

pgpmime's People

Contributors

kianga avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.