Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am looking for a text editor which supports openssl encryption as a plugin. So, instead of manually:

  • decrypt a file in shell
  • edit it in the text editor
  • encrypt the file in shell

Hopefully, the plugin can take care of the above human steps and only ask for password when opening and closing the file.

share|improve this question
    
OpenSSL is a network protocol layer... how does this relate to a text editor? – Flimzy May 2 '12 at 3:35
    
@Flimzy: The OpenSSL CLI tool can also encrypt and decrypt binary data. See the enc predicate. – Ignacio Vazquez-Abrams May 2 '12 at 3:37
    
EncryptPad does exactly what you ask but OpenPGP encryption instead of OpenSSL. This text editor does not need a plug-in. Encryption is its main functionality. You don't need to install anything else. – evpo Feb 24 at 4:05
up vote 2 down vote accepted

It looks like the openssl.vim plugin for Vim can do this, although I've never used it myself. I do use the gnupg.vim plugin however. I'm not sure why you specifically want to use OpenSSL for encryption, but unless you know what you're doing I would suggest GnuPG instead (OpenSSL is a more low level tool and one can still do the wrong thing with ciphers if they aren't used properly). GnuPG can do symmetric encryption (i.e. a passphrase) as well as public/private key encryption.

share|improve this answer
    
One reason to choice openssl: it's pre-installed on a mac. – ohho May 2 '12 at 7:27
    
OpenSSL supports a number of different ciphers including 3DES and AES. I think "using OpenSSL encryption" would read better as "using OpenSSL for encryption". – emgee May 3 '12 at 5:57

Textmate includes the ability to encrypt and decrypt using AES. If you look into the bundle that does this, you can see it is using openssl to do the encryption/decryption. You could easily modify the bundle if needed for different parameters, ciphers, etc.

share|improve this answer

Although it doesn't use OpenSSL, Vim can encrypt a file using Blowfish. See :h encryption for details.

share|improve this answer

Sublime also has an OpenSSL encryption package OpenSSL, and a GPG plugin too.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .