From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/84153 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.gnus.general Subject: Re: Emacs Cloud Date: Sun, 02 Feb 2014 14:50:48 -0800 Message-ID: <87lhxtf7sn.fsf@building.gnus.org> References: <877g9fxwih.fsf@building.gnus.org> <87r47ni1mu.fsf@flea.lifelogs.com> <87k3deo8y0.fsf@building.gnus.org> <87mwiaqzjj.fsf@flea.lifelogs.com> <87txcimrsc.fsf@building.gnus.org> <87ha8impk9.fsf@building.gnus.org> <87eh3mqf4t.fsf@flea.lifelogs.com> <871tzmm6yz.fsf@building.gnus.org> <871tzlqvma.fsf@flea.lifelogs.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1391381517 14377 80.91.229.3 (2 Feb 2014 22:51:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 2 Feb 2014 22:51:57 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M32405@lists.math.uh.edu Sun Feb 02 23:52:05 2014 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WA5tT-0003Ha-Lw for ding-account@gmane.org; Sun, 02 Feb 2014 23:52:03 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1WA5tS-0006G6-84; Sun, 02 Feb 2014 16:52:02 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1WA5tQ-0006Fl-Sz for ding@lists.math.uh.edu; Sun, 02 Feb 2014 16:52:00 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1WA5tQ-000238-3U for ding@lists.math.uh.edu; Sun, 02 Feb 2014 16:52:00 -0600 Original-Received: from hermes.netfonds.no ([80.91.224.195]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1WA5tO-0004Gm-Q1 for ding@gnus.org; Sun, 02 Feb 2014 23:51:58 +0100 Original-Received: from [204.14.154.233] (helo=building.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1WA5tA-0006vV-Ok for ding@gnus.org; Sun, 02 Feb 2014 23:51:45 +0100 In-Reply-To: <871tzlqvma.fsf@flea.lifelogs.com> (Ted Zlatanov's message of "Sun, 02 Feb 2014 12:20:45 -0500") User-Agent: Gnus/5.13001 (Ma Gnus v0.10) Emacs/24.3.50 (gnu/linux) X-MailScanner-ID: 1WA5tA-0006vV-Ok MailScanner-NULL-Check: 1391986305.61993@j2SXhCALPykb9+3f9QPmKQ X-Spam-Status: No X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:84153 Archived-At: Ted Zlatanov writes: > LI> Hm. What's the role of the "secret" in those functions? > > When auth-source sees a token in authinfo that looks like this: > > gpg:LS0tLS1CRUdJTiBQR1AgTUVTU0FHRS0tLS0tClZlcnNpb246IEdudVBHIHYxLjQuMTEgKEdOVS9MaW51eCkKCmpBMEVBd01DT25qMjB1ak9rZnRneVI3K21iNm9aZWhuLzRad3cySkdlbnVaKzRpeEswWDY5di9icDI1U1dsQT0KPS9yc2wKLS0tLS1FTkQgUEdQIE1FU1NBR0UtLS0tLQo= > > it will BASE64-decode the data after "gpg:" and then do a GnuPG decode > of the resulting data from a temporary file. This allows you to have > such tokens in an unencrypted authinfo file, effectively hiding the > password but leaving the connection info readable. These functions go > from encoded token to decoded secret and back. Aha! I totally misread that function. I thought "mysecret" was some kind of salt and "~/.netrc" was the thing being encrypted: (auth-source-epa-make-gpg-token "mysecret" "~/.netrc") But now I understand -- "mysecret" is the thing being encrypted. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/