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 11:34:14 +0800 Message-ID: References: <871rcfqe5e.fsf@uninett.no> 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="16459"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: Vegard Vesterheim Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 18 04:35:09 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 1lMjRD-00047m-J8 for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 18 Mar 2021 04:35:07 +0100 Original-Received: from localhost ([::1]:47218 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lMjRC-0007km-LY for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 17 Mar 2021 23:35:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58242) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lMjQc-0007jC-K6 for help-gnu-emacs@gnu.org; Wed, 17 Mar 2021 23:34:30 -0400 Original-Received: from mail-lj1-x22a.google.com ([2a00:1450:4864:20::22a]:34363) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lMjQa-0003Mq-WF for help-gnu-emacs@gnu.org; Wed, 17 Mar 2021 23:34:30 -0400 Original-Received: by mail-lj1-x22a.google.com with SMTP id f16so5811917ljm.1 for ; Wed, 17 Mar 2021 20:34:27 -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=fOwteJ54MpFEuSts0PDE9q5JJNAvMb2BjruSClcuFHc=; b=TaS2hQ7tt3+HaV6Xuelx7PW+AOdR+Y464JsqMMqaLAfsSh1rTTsI9+qWImWFiUg77y okI8JzDpKvHNmBRL52ukOnTbwwDc0ZVJMpsSnzmTjnhw3a+JNb+O5FQ5CypzN0PoiuN9 HWs3ZYWv17R3/9NFhrxpXqSvXXpqPA2vme2LamnN4dczkyuy+NOg7lbrmBvWhnVOhqmf k1btYH+xfPzV9ZaA9hShbCCsOLZ8ZfPvk09OBB2IxKXyJ6eqFJRvrU/YnkEVRBGff63t NI6h4QU9rGJeSySifbxitlrHJTra6HDy6/xFwcQGYkWWuaSyw2O3lcPSyQ/CvxQUsVRf OE8A== 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=fOwteJ54MpFEuSts0PDE9q5JJNAvMb2BjruSClcuFHc=; b=iZdZY+seZwaNozQiq7HrpmgnGSo8JdHOXyMOv5ahGu9D5nGicZ0CwGHPT198Xe9SBa 358n6+L50aSibrYji5PaZ5A1Idqsk3UQLJBX5dezkQnx4tYzSDlrwnvBFvr3oxVZvJG9 qAPVfH/B8Wl9B+5EgbfY2fL5e//65flFspnGSCr3q/r9+QDzgHgXGuP2QjBtJYgtkPus C/+MSgMm50qlXErbEVYTxhKmfK2q0ePW6pfBUi2A6WkH3ktYqaJgmrZx+S1udHOgXl7O wVsu7qaoNa1QeIaZCMjXf0PgRh/7efqdG16WIHNoqxR1xA7EmSogL6Ega3bbQTQt3fdD fbyQ== X-Gm-Message-State: AOAM532r1BrHVURwTe7JFRDhgMFDtH5j+lKYH9sN0i+Fq//tnxXHc2nL PMoJLJYrHnmu9MeZIC45m3HrJ5ZP3flhyGlplNc= X-Google-Smtp-Source: ABdhPJxfktFwqGE8/i1eHWCXItDC4sHVv6HM0HoOeUXL4YnQhaVWScKOnS5RNr/WGar5NKWk6QGoGZkqnTZPbwlL04s= X-Received: by 2002:a2e:9c1:: with SMTP id 184mr4146457ljj.481.1616038465665; Wed, 17 Mar 2021 20:34:25 -0700 (PDT) In-Reply-To: <871rcfqe5e.fsf@uninett.no> Received-SPF: pass client-ip=2a00:1450:4864:20::22a; envelope-from=hongyi.zhao@gmail.com; helo=mail-lj1-x22a.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:128436 Archived-At: On Wed, Mar 17, 2021 at 12:03 AM Vegard Vesterheim wrote: > > 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 To be frank, the notes/instructions on emacswiki were written a long time ago, while the ones on masteringemacs is up to date. So, I prefer the former. Regards -- Assoc. Prof. Hongyi Zhao Theory and Simulation of Materials Hebei Polytechnic University of Science and Technology engineering NO. 552 North Gangtie Road, Xingtai, China