all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Transparent encrypt and decrypt token file with gpg2 in Emacs.
@ 2021-06-09 15:12 Hongyi Zhao
  2021-06-09 16:03 ` Jean Louis
  0 siblings, 1 reply; 4+ messages in thread
From: Hongyi Zhao @ 2021-06-09 15:12 UTC (permalink / raw)
  To: help-gnu-emacs

On Ubuntu 20.04, I store the API token in a file with an extension
name gpg. Then I load this file in init-file.

But when I always notice that when the content of the token file is
read by Emacs, the following error will be triggered:

In the *Error* buffer:

Error while decrypting with "/usr/bin/gpg2":

gpg: no valid OpenPGP data found.
gpg: decrypt_message failed: Unknown system error

In the *Message* buffer:

Loading /home/werner/DvdMgr/screen2latex.el.git/auth.el.gpg...
Decrypting /home/werner/DvdMgr/screen2latex.el.git/auth.el.gpg...done
epa-file-insert-file-contents: Opening input file: Can't decrypt, No
data (no armored data); No data (expected a packet but did not find
one); Exit
Mark set [4 times]

Any hints for solving this problem?

Regards
-- 
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Vocational University of Technology and Engineering
NO. 552 North Gangtie Road, Xingtai, China



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-06-10  5:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-09 15:12 Transparent encrypt and decrypt token file with gpg2 in Emacs Hongyi Zhao
2021-06-09 16:03 ` Jean Louis
2021-06-10  2:19   ` Hongyi Zhao
2021-06-10  5:08     ` Hongyi Zhao

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.