Sign and Encrypt (GPG) from edit menu

Asked by AlexGenaud on 2011-09-20

Is it possible directly, through a plugin, or a simple external application to sign and/or encrypt an entire document, the selected text, or the clipboard?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu gedit Edit question
Assignee:
No assignee Edit question
Last query:
2011-09-20
Last reply:
2013-04-26
Curtis Hovey (sinzui) said : #1

There are no plugins that do this. Writing one is doable, though probably unnecessary. You can configure gedit to sign/encrypt documents using the External Tools plugin and adding an action for gpg. For example. I just setup a Clear sign action that appears in the Tools menu:

* Enable External Tools via Menu > Preferences > Plugins External Tools
* Choose Menu > Tools > Manage External Tools
* Add a new action named "Clear sign"
* Set the script to
#!/bin/sh
gpg --clearsign --no-tty -
* Input: Current document
* Output: Replace current document
* Close the manager window
* Type any text into a new document
* Choose Menu > Tools > External Tools > Clear sign (may need a restart to see this)

Sam_ (and-sam) said : #2

With Natty 11.04, seahorse-plugins can still be used. It's then available in gedit plugins en-decryption.
The plugin isn't available in Oneiric.
Bug #832888
Bug #796752

Alternatively Nautilus scripts e.g.
http://gnome-look.org/content/show.php/Encrypt%2BDecrypt+Files?content=74653&PHPSESSID=ca227c92f6942ab84cba47c6aefd1650
http://gnome-look.org/content/show.php/EncryptDecrypt+Reloaded?content=105874

Pietro Battiston (toobaz) said : #3

Some autopromotion/request for feedback:
http://pietrobattiston.it/gedit-crypto

It still does not sign, but it's very easy to add. I just want to understand if the interface is appreciated (I never used the old version of the plugin).

Can you help with this problem?

Provide an answer of your own, or ask AlexGenaud for more information if necessary.

To post a message you must log in.