Text editors with encryption plugins?

2

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.

ohho

Posted 2012-05-02T03:33:56.867

Reputation: 2 356

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 – 2016-02-24T04:05:22.693

OpenSSL is a network protocol layer... how does this relate to a text editor? – Flimzy – 2012-05-02T03:35:52.130

@Flimzy: The OpenSSL CLI tool can also encrypt and decrypt binary data. See the enc predicate. – Ignacio Vazquez-Abrams – 2012-05-02T03:37:41.067

Answers

2

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.

mgorven

Posted 2012-05-02T03:33:56.867

Reputation: 2 539

One reason to choice openssl: it's pre-installed on a mac. – ohho – 2012-05-02T07:27:19.370

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 – 2012-05-03T05:57:35.507

2

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.

emgee

Posted 2012-05-02T03:33:56.867

Reputation: 4 487

1

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

Ignacio Vazquez-Abrams

Posted 2012-05-02T03:33:56.867

Reputation: 100 516

1

Sublime also has an OpenSSL encryption package OpenSSL.

user1277706

Posted 2012-05-02T03:33:56.867

Reputation: 11