Use easypg in Windows

Source: Internet
Author: User
Tags gnupg

In Linux, easypg can be easily used to encrypt text files. Recently, work has been migrated to windows, so some things have to be configured in windows.

To use easypg in windows, install gpg4win to replace GnuPG in Linux.

After the installation is successful, an execution path is automatically added to the system path. The default installation path is

 
C:/program files/GNU/GnuPG/pub

Of course, you can also specify the path of the GPG executable file in. emacs, similar to the followingCode(Declaration: I copied the chunhui code. I did not test it carefully. I asked him if I had any questions !) :

(Custom-set-variables '(EPA-file-name-Regexp"\. GPG\\(~\\|\\.~ [0-9] + ~\\)? \\'") '(EPG-GPG-Program"C:/program files/GNU/GnuPG/pub/gpg2.exe"))

If the following error is prompted, your GnuPG installation or configuration is incorrect. As a result, emacs does not know how to read the file:

 
File exists, but cannot be read

Thanks to Shui muCommunityChunhui code and help.

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.