From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.help Subject: Re: Store news server authentication credentials for gnus in an encrypted manner. Date: Thu, 18 Mar 2021 10:36:10 +0800 Message-ID: References: <878s6nt5z0.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17306"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: Eric Abrahamsen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 18 03:37:06 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 1lMiX3-0004N6-SZ for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 18 Mar 2021 03:37:05 +0100 Original-Received: from localhost ([::1]:40966 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lMiX2-0007ZL-VW for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 17 Mar 2021 22:37:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51096) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lMiWS-0007ZD-5E for help-gnu-emacs@gnu.org; Wed, 17 Mar 2021 22:36:28 -0400 Original-Received: from mail-lj1-x233.google.com ([2a00:1450:4864:20::233]:40588) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lMiWP-0001ci-Qr for help-gnu-emacs@gnu.org; Wed, 17 Mar 2021 22:36:27 -0400 Original-Received: by mail-lj1-x233.google.com with SMTP id u10so5661036lju.7 for ; Wed, 17 Mar 2021 19:36:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=jdqr0V9qzPacyy9ErnWqSGslgpopny1noyagLVqgMS8=; b=PG//L1SFnjfyR9I4tiOR79LkF1O7MBUJ8tmIddyY1+KVbFyQvZ3hEXEeo8ZBxwg2XM 4tQ9KyUHwY3ZoEgIt2psVAEdX7kyCtDHNRyrS8CxH7wS3Cb3SFhBok4wh6aluVxhZxJH +mTCbRzOfXbeLL+nfIs6q1KPJRLRez/tzlfgYucHOG+R83ZcLilrHjNzMMCSe8ozrbLY YsugsoR+OUu/YpDB2SahvGaL0zxMl8c8Ats4TgHUDdTXuDcyP5h1Yby3KTlZnG8vAEcI RgppKQIn1qSBbjrkdRvkjRMHXqDajMoPMpdSHI8ZYLWUjgY2WktMW0OD6stZhCebj14P 5j0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=jdqr0V9qzPacyy9ErnWqSGslgpopny1noyagLVqgMS8=; b=C6+HcYtRcZG0KuNUdB5RnuLbmeR4J1hN3+Gr91isbaYc1quuMfdveV9kEnnVfcHjDh MS/IPyGpCoMZYUP//3MUuBmlnxnGZUyYgQrjLEft0M4lDVbWpIkT4wjpU4udp5Gg06A0 AiX1A/4tVvFNIvsiSGtIbHjFqSSZ6RnIML1IdE5zN9FvdFuy/7ximIP5K3gv1B9+YaAQ ppD8qVZL9XrCmGFMYrzlHOncvpdg/Lstc4xBXa9qqllRDiaBMvg6zz5EmOTcnez8KhXT B1+hTkeA3izrQLm/hXIKrMQUDE1xoFBSEE1U0owAgl8U6lF84dw6A6sZ7d8NmXB9Urnd CwGA== X-Gm-Message-State: AOAM5334NuQBU3T/RRzg+WFdMCiGZMX0aDr7MM+dK9mwr8Pmvj1six/X 8yUGJJcl49PxQFnjCDvvNIATvbsB4z4xVs86eK8= X-Google-Smtp-Source: ABdhPJz8LC5cxWvFRNLzyR7gZYyIdqs97//TXBWRfKc0n3W7effEUMyUDKB68YkxrDevY1eMa80At21rj4VswlCbLk8= X-Received: by 2002:a2e:3816:: with SMTP id f22mr3944869lja.287.1616034982630; Wed, 17 Mar 2021 19:36:22 -0700 (PDT) In-Reply-To: <878s6nt5z0.fsf@ericabrahamsen.net> Received-SPF: pass client-ip=2a00:1450:4864:20::233; envelope-from=hongyi.zhao@gmail.com; helo=mail-lj1-x233.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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:128435 Archived-At: Got it. Thank you everyone for your help here. On Wed, Mar 17, 2021 at 12:32 AM Eric Abrahamsen wrote: > > Hongyi Zhao writes: > > > 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. > > You can just use a ~/.authinfo.gpg file, and everything will work > correctly (assuming GPG encryption/decryption is already working for you > in Emacs). > > Eric -- Assoc. Prof. Hongyi Zhao Theory and Simulation of Materials Hebei Polytechnic University of Science and Technology engineering NO. 552 North Gangtie Road, Xingtai, China