emacs + ccrypt

alan's 的頭像

介紹:Peter Selinger: ccrypt

When you open a file with the ".cpt" extension, emacs will prompt you for a password for the file. It will remember the password for the buffer, and when you save the file later, it will be automatically encrypted again (provided you save it with a ".cpt" extension). Except for the password prompt, the operation of the package should be transparent to the user. The package also handles compressed ".gz", ".bz2", and ".Z" files, and it should be used instead of, not in addition to, jka-compr. The command M-x ccrypt-set-buffer-password can be used to change the current password of a buffer.

安裝

$ sudo aptitude install ccrypt

就會順便安裝 ccrypt.el

修改 .emacs 加入

(require 'jka-compr-ccrypt)

發表新回應

這個欄位的內容會保密,不會公開顯示。
  • 可使用的 HTML 標籤:<a> <em> <pre><strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd><img><h1><h2><h3>
  • 自動斷行和分段。

更多關於格式選項的資訊