I previously introduced how to use easypg to encrypt files in Emacs, but once I want to reset the encryption key (Key, similar to the password), what should I do?
In fact, it is very easy to enter a new key when you need to save the modified file. The detailed steps are as follows:
1. open the file in emacs.2. enter the original passphrase when prompted.3. type a letter then remove it (to convince Emacs the file unchanged ). 4. c-x C-s will prompt you for a new passphrase.
If you use the following two lines in the. emacs file to enable Emacs to remember the key in the current sessionCode:
;;Save the password(Setq EPA-file-Cache-passphrase-for-encryption Ric-encryption T);;Auto-save(Setq EPA-file-inhibit-auto-save Nil)
You can comment out the preceding operations first.
Of course, you can also make similar changes through GnuPG. However, the modification of the key will not be too frequent. I think the above method is simple and convenient.
OriginalArticle, Such as reprint Please note: Reprinted from the hammer details [http://blog.WaterLin.org/]
Copyright waterlin.org. All rights reserved.