Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


Share this Page URL
Help

Chapter 7. Protecting Files > Maintaining Encrypted Files with vim - Pg. 170

Discussion crypt++ provides a transparent editing mode for encrypted files. Once the package is installed and loaded, simply edit any GnuPG-encrypted file. You'll be prompted for the passphrase within Emacs, and the file will be decrypted and inserted into an Emacs buffer. When you save the file, it will be re-encrypted automatically. See Also Crypt++ is available from http://freshmeat.net/projects/crypt and http://www.cs.umb. edu/~karl/crypt++/crypt++.el. 7.24 Maintaining Encrypted Files with vim Problem You want to edit encrypted files in place with vim , without decrypting them to disk. Solution Add the following lines to your ~/.vimrc file: " Transparent editing of GnuPG-encrypted files