Is there an encrypting text editor for ubuntu? In other words, the text editor, preferably GUI capable, should always save an encrypted file and always prompt for the password to re-open the file. The point is to combine the functionality of a text editor with an encryption tool.
Vi/Vim
Just use
vim
orvi
which offers file encryption withblowfish
when using-x
option.create a file for encryption as follows:
Then it will prompt to enter encryption key
Once a file has been encrypted by Vim once, you never need to use the -x option when opening that file again. Vim will automatically recognize it as an encrypted file and do the right thing.
Because Blowfish is a symmetric key encryption system, the same key is used for both encryption and decryption. When
Vim
opens a file for the first time with the -x option, the first thing it will do is ask you to give it a key you can use to encrypt and decrypt the file, with this prompt:After entering the key, you will then be asked to confirm the key, to ensure you did not mistype it.
Then it will open as normally as usual.
Read more here
CryptoTE
According to the website.
for ubuntu see.
Gedit.
REQUIREMENTS
ENABLE GnuPG
This will only work if you have enabled GnuPG in your system.
Install GnuPG
Generate your keys:
When generating the keys, you can just press enter at any time to accept the default value in brackets. The most important part of your key generation is choosing your passphrase.
Your public keyring should just contain your own public key for now, you can view the keyring with the
--list-keys
option and your private key with the--list-secret-keys
option.GnuPG source: http://www.ianatkinson.net/computing/gnupg.htm
SETUP
Just go to Tools > Manage External Tools, and add the scripts:
ENCRYPT
Paste the following code on a new command, called “Encrypt”:
with the options:
DECRYPT
Paste the following code on a new command, called “Decrypt”:
with the options:
USAGE
Once that is done, then you can open encrypted files (asc – ascii files, not binary), or create new ones on spot using the shortcuts.
Example:
SOURCE
http://blog.brunobraga.net/encrypting-and-decrypting-with-gedit/
METHOD 2 Another way is to install zillo.
See this question on how to install the plugin
Naturally, you can also do this in
emacs
. The emacs wiki has a very nice page on this, providing 7 different approaches:The simplest would probably be EasyPG Assistant since it is an interface to GnuPG and should work out of the box.
You could try
vim
with the gnupg.vim plugin, which is for transparent editing of gpg encrypted files.gnupg.vim description:
If you like Geany, there's a plugin (
sudo apt-get install geany-plugin-pg
):Also: http://plugins.geany.org/geanypg.html
EncryptPad - an application for viewing and editing symmetrically encrypted text. It also provides a tool for encrypting and decrypting binary files on disk. It is compatible with OpenPGP. So you can open files encrypted with OpenPGP software. There is also key file protection and a password generator. Platforms: Linux, Mac OS X and Windows.
Main Window in Windows
Binary Encryptor Dialogue in Lubuntu
DeadboltEdit - A secure encrypting text editor for Linux, Mac OS X, and Windows.
It uses Blowfish encryption, compatible with the OpenSSL implementation.
Website: www.deadboltedit.org
You can do it all in the command line interface with nano editor and gpg as encryption. But I don't know how secure this is. Maybe someone else can comment on that
create a text file called text_file
encrypt it with:
gpg -c text_file
this will ask you to set a passphrase
now you have the encrypted text_file.gpg and the unencrypted text_file
you can delete the unencrypted text_file
I wrote a bash script to make the process of updating the text_file.gpg easier. This will:
decrypt the text_file.gpg
open the text_file in nano editor
after you edited the file it will:
delete the old text_file.gpg
create a new text_file.gpg
delete the new text_file if a new text_file.gpg was successfully created.
Save the bash script as an .sh file for example script_file.sh.
Whenever you want to edit the text_file.gpg, you can call the script_file.sh with:
For me, the easiest was gnu emacs. https://www.gnu.org/software/emacs/ Especially since I already had it installed and I was gleefully surprised that it 'just worked'
emacs file.gpg
(gui prompt for passphrase)
file opens.
and
Ctrl-x-s
(which is how you save in emacs) will prompt you for a new passphrase.