用 Emacs 加密文件

原文: 用 Emacs 加密文件

Dieken 写道

;easypg.el===file break point===
;; easypg,emacs 自带
(require 'epa-file)
(epa-file-enable)
;; 总是使用对称加密
(setq epa-file-encrypt-to nil)
;; 允许缓存密码,否则编辑时每次保存都要输入密码
(setq epa-file-cache-passphrase-for-symmetric-encryption t)
;; 允许自动保存
(setq epa-file-inhibit-auto-save nil)


文件名以gpg为后缀
安装 gpg 后,把gpg.exe 的目录放入PATH中

gpg 一个下载地址

你可能感兴趣的:(html,cache,Blog,emacs)