From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Vegard Vesterheim Newsgroups: gmane.emacs.help Subject: Re: Store news server authentication credentials for gnus in an encrypted manner. Date: Tue, 16 Mar 2021 17:03:41 +0100 Organization: UNINETT AS Message-ID: <871rcfqe5e.fsf@uninett.no> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25513"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cc: help-gnu-emacs To: Hongyi Zhao Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Mar 16 17:14:39 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lMCL8-0006V4-UI for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 16 Mar 2021 17:14:38 +0100 Original-Received: from localhost ([::1]:34046 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lMCL7-00048c-TF for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 16 Mar 2021 12:14:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37534) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lMCB7-0003dT-A9 for help-gnu-emacs@gnu.org; Tue, 16 Mar 2021 12:04:17 -0400 Original-Received: from smarthost-tos5.mail.uninett.no ([2001:700:0:804f::70]:44524) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lMCAn-00021m-Fx for help-gnu-emacs@gnu.org; Tue, 16 Mar 2021 12:04:10 -0400 Original-Received: from submission-trd1.mail.uninett.no (submission-trd1.mail.uninett.no [158.38.212.66]) by smarthost-tos5.mail.uninett.no (Postfix) with ESMTPS id 09A274A5F6D; Tue, 16 Mar 2021 17:03:40 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uninett.no; s=uninett201804; t=1615910620; bh=S0fkiK8UJBGnxKUmS0/ynBLYxskCBSNGnRioII5Z/hk=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=DzEWkHPJPX7txMA+tnRzMQrXr5Sa15dHbSjCZHn2JwNLAyimnJpAa5iwy+ntD3kJG Xe1NzW95Od61uFlM4j9CvtUTmHKXj03EwkOIp/D/xuq/uofio1OqJtZs9FhefRsMr8 QWiVddVa5tEY8DVmA4P5Eoktzeonc+xhXnHoK7BAJ0mefW6xXyoceloxkNYHNfM0f7 4vfSLEH9DNo2PxNOxt6ZKq7xOV+IV6tMc54goCRKLbnQ/jr9GY0DDL1IJrfhAEUMj6 V0Zk96g4FRq9RKyXKiMMJNIQr3igr0T8FUeIcp5xF9EMKT1i74aAPSP25k+xHymwZ6 7Hn9OxHI3/XNw== Original-Received: from nuc (unknown [IPv6:2001:700:0:4560::1000]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: vegardv) by submission-trd1.mail.uninett.no (Postfix) with ESMTPSA id B8173203A0; Tue, 16 Mar 2021 17:03:39 +0100 (CET) In-Reply-To: (Hongyi Zhao's message of "Tue, 16 Mar 2021 23:26:14 +0800") Received-SPF: pass client-ip=2001:700:0:804f::70; envelope-from=vegard.vesterheim@uninett.no; helo=smarthost-tos5.mail.uninett.no X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:128423 Archived-At: On Tue, 16 Mar 2021 23:26:14 +0800 Hongyi Zhao wrote: > I noticed the FAQ 3-3 for gnus at > , > which uses the file ~/.authinfo to store the news server > authentication information with file mode bits set to 600. > > But I want to know if there are some encrypted methods for such a job. > Any hints will be highly appreciated. Encrypt the data with GPG and save the data in ~/.authinfo.gpg. https://www.masteringemacs.org/article/keeping-secrets-in-emacs-gnupg-auth-sources https://www.emacswiki.org/emacs/GnusEncryptedAuthInfo -- Vennlig hilsen/Best regards Vegard Vesterheim Senior Software engineer +47 48 11 98 98 vegard.vesterheim@uninett.no