Modify the key of Emacs easypg

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.