From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/80860 Path: news.gmane.org!not-for-mail From: Richard Riley Newsgroups: gmane.emacs.gnus.general Subject: Re: smtpmail authentication again Date: Tue, 10 Jan 2012 17:26:21 +0100 Organization: aich tea tea pea dicky riley dot net Message-ID: References: <87d3awtgda.fsf@lifelogs.com> <878vlktfy6.fsf@lifelogs.com> <874nw7slnv.fsf@lifelogs.com> <87fwfqouk3.fsf@lifelogs.com> <87wr8zei8c.fsf@lifelogs.com> Reply-To: ding@gnus.org NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1326212853 31280 80.91.229.12 (10 Jan 2012 16:27:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 10 Jan 2012 16:27:33 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M29142@lists.math.uh.edu Tue Jan 10 17:27:29 2012 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RkeXk-0004Im-PD for ding-account@gmane.org; Tue, 10 Jan 2012 17:27:25 +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 1RkeXC-0007xm-5C; Tue, 10 Jan 2012 10:26:50 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1RkeX9-0007xY-Fn for ding@lists.math.uh.edu; Tue, 10 Jan 2012 10:26:47 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1RkeX7-00012m-Pr for ding@lists.math.uh.edu; Tue, 10 Jan 2012 10:26:46 -0600 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1RkeX4-0004KB-TU for ding@gnus.org; Tue, 10 Jan 2012 17:26:42 +0100 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RkeX4-0003og-Pk for ding@gnus.org; Tue, 10 Jan 2012 17:26:42 +0100 Original-Received: from 85.183.18.158 ([85.183.18.158]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 10 Jan 2012 17:26:42 +0100 Original-Received: from rileyrg by 85.183.18.158 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 10 Jan 2012 17:26:42 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 50 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 85.183.18.158 Mail-Copies-To: never User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) Cancel-Lock: sha1:75aUyO645K75sx2HppDOaCXkN3E= X-Spam-Score: -2.8 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:80860 Archived-At: Ted Zlatanov writes: > On Tue, 10 Jan 2012 03:34:43 +0100 Richard Riley wrote: > > RR> Thanks ted. I'll try to use this then to store my erc credentials in gpg > RR> file. Strikes me as the srt of thing that would greatly benefit from > RR> little wrappers for the commone usage as simple as > > RR> getUserForHost("host"); > RR> getPassForHost("host"); > > (CamelCase? Horror!) > > That would hide the search API, especially that you can get multiple > answers and connection parameters for a query. End users are not It doesnt hide anything. The serch "api" is still there. Personally I wouldnt have a snowballs chance in hell of understanding the elisp you posted above ;) > supposed to use auth-source directly, and packages will almost always > want the complex search. I think thats a bit of a jump. I'm asking as I have a lot of passwords for various things in a hidden, chmod'ed plain text file. And Im certain many others do too. In a gpg file they are safe. If I lose my netbook... > > Also getPass or whatever it's called will expose the password, whereas > now it's wrapped in a lexical-let so you can't see it easily until > you're ready to use it. If one uses the function one takes the chance. I suspect the great majority of us dont worryy too mcuh about certain passwords for things not overly critical being in the memory of our local machines at home. And anyways, it depends on how we code the the stuff that uses this getPass/getUser wrapper : lexical hiding can be applied there too. > > I understand the benefit of simplicity, though. Hmmm. Besides ERC, > where would you use the simpler functions? Absolutely everywhere I needed to access a uid & password that I dont want stored in plain text : "machine" here doubles for "account". Off the top of my head: erc, twitter, mysql, mpd server, bitlbee, identica. Im sure there are plenty more.