01 March 2005 Linux, MacOSX
This blog post is 16 years old! Most likely, its content is outdated. Especially if it's technical.
UPDATE (Jan 2019): Read this newer blog post instead https://www.peterbe.com/plog/encrypt-with-emacs-on-macos-ccrypt
With the ccrypt
program for Linux and some Emacs settings you can achieve the following:
You create or open a file called passwords.cpt
. Then Emacs asks you for a password. Once you've entered the password you can word with the file like any other file to for example write down all your passwords to various websites or bank accounts.
When you close Emacs and try to read the file with any other program you get the binary encrypted output which is useless. What's important to Emacs is that the filename ends in .cpt
which is a bit clunky. In vi
you can get the same effect simply by passing the -x
option when opening a file. But I don't like vi
.
- Previous:
- File attachment widget with Javascript 25 February 2005
- Next:
- Suspend and resume output in terminal 03 March 2005
- Related by category:
- How to create-react-app with Docker 17 November 2017 Linux
- Be very careful with your add_header in Nginx! You might make your site insecure 11 February 2018 Linux
- Linux tip: du --max-depth=1
27 September 2007 Linux
- set -ex - The most useful bash trick of the year 31 August 2014 Linux
- "No space left on device" on OSX Docker 03 October 2017 MacOSX
- Related by keyword:
- How to encrypt a file with Emacs on macOS (ccrypt) 29 January 2019
- Read in passwords with bash 25 March 2005
- Best Atom packages of 2015 22 January 2016
-
Wing IDE versus Jed 11 December 2008
- EditArea vs. CodePress 03 January 2008