From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: NaCl support for Emacs Date: Mon, 09 Jan 2012 22:21:19 -0500 Message-ID: References: <87ehve3ul8.fsf@lifelogs.com> <87lipl22xm.fsf@lifelogs.com> <87boqh20ha.fsf@lifelogs.com> <871urc46c9.fsf@uwakimon.sk.tsukuba.ac.jp> <739bsoysp.fsf@news.eternal-september.org> <87ty47r5yt.fsf@lifelogs.com> <87k452p5u3.fsf@lifelogs.com> <87liphne9e.fsf_-_@lifelogs.com> <87fwfon7gl.fsf@lifelogs.com> <87hb04icxl.fsf@lifelogs.com> <87pqesgwnj.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1326165694 7496 80.91.229.12 (10 Jan 2012 03:21:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 10 Jan 2012 03:21:34 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 10 04:21:29 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RkSHA-0005VU-Er for ged-emacs-devel@m.gmane.org; Tue, 10 Jan 2012 04:21:28 +0100 Original-Received: from localhost ([::1]:34766 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkSH9-0005Qm-PQ for ged-emacs-devel@m.gmane.org; Mon, 09 Jan 2012 22:21:27 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:45387) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkSH7-0005QW-6f for emacs-devel@gnu.org; Mon, 09 Jan 2012 22:21:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RkSH6-0007Ag-BO for emacs-devel@gnu.org; Mon, 09 Jan 2012 22:21:25 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183]:50504) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkSH6-0007AW-1I for emacs-devel@gnu.org; Mon, 09 Jan 2012 22:21:24 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAMitC09FxKkV/2dsb2JhbABDrFWBBoFyAQEEAVYoCwswBBIUGA2IMbZiiHcCgxgEiDmaVIRS X-IronPort-AV: E=Sophos;i="4.71,484,1320642000"; d="scan'208";a="155963696" Original-Received: from 69-196-169-21.dsl.teksavvy.com (HELO ceviche.home) ([69.196.169.21]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 09 Jan 2012 22:21:20 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id EC8DE6610B; Mon, 9 Jan 2012 22:21:19 -0500 (EST) In-Reply-To: <87pqesgwnj.fsf@lifelogs.com> (Ted Zlatanov's message of "Mon, 09 Jan 2012 20:43:12 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.183 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:147545 Archived-At: > Argh. The auth-source cache is already implemented as a hack, is that > hard enough evidence? Quoting the relevant bit from > `auth-source-netrc-parse': > #+begin_src lisp > ;; cache all netrc files (used to be just .gpg files) > ;; Store the contents of the file heavily encrypted in memory. > ;; (note for the irony-impaired: they are just obfuscated) > (aput 'auth-source-netrc-cache file > (list :mtime (nth 5 (file-attributes file)) > :secret (lexical-let ((v (mapcar '1+ (buffer-string)))) > (lambda () (apply 'string (mapcar '1- v)))))) > #+end_src Not only I'm not worried about that, but I'm not sure libnettle (or any other encryption library) would help you fix the underlying problem: Emacs needs to be able to recover the password for later use anyway, so anything we do can only ever be obfuscation, AFAIK. Maybe there's some clever way to do better, but again, for lack of hard evidence I'm unconvinced. Stefan