From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ramon Diaz-Uriarte Subject: Re: An org password manager Date: Sun, 11 May 2014 11:15:16 +0200 Message-ID: <87iopcad7f.fsf@gmail.com> References: <87d2fklwkv.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34960) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WjPqv-0000us-2A for emacs-orgmode@gnu.org; Sun, 11 May 2014 05:15:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WjPqq-0003bX-UX for emacs-orgmode@gnu.org; Sun, 11 May 2014 05:15:24 -0400 Received: from mail-wi0-x229.google.com ([2a00:1450:400c:c05::229]:33671) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WjPqq-0003Yx-N5 for emacs-orgmode@gnu.org; Sun, 11 May 2014 05:15:20 -0400 Received: by mail-wi0-f169.google.com with SMTP id hi2so4242235wib.4 for ; Sun, 11 May 2014 02:15:19 -0700 (PDT) In-reply-to: <87d2fklwkv.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Jorge A. Alfaro-Murillo" Cc: emacs-orgmode@gnu.org Dear Jorge, Neat!! Thanks for providing the details. I've been using a somewhat similar approach with a lot less functionality for a few years, but as I reported in the org email list, something I find unsettling is that if an encrypted buffer is killed right when it is being opened (when you just typed the password ---sure, low probability, but not zero), part of the contents of the encrypted buffer are left, as plain text, in other buffer(s). I reported this here http://lists.gnu.org/archive/html/emacs-orgmode/2011-12/msg00841.html and I still experience the problem (I just try it not to happen). Is this not affecting you at all? I'd have thought it would, since you are also using a timer to kill the buffer, and it could fire right after you enter the password. Best, R. On Sun, 11-05-2014, at 07:21, Jorge A. Alfaro-Murillo wrote: > Hi! I have been using org for managing passwords for a some time now. In > case someone is interested, the code is in: > https://bitbucket.org/alfaromurillo/org-passwords.el > > To consult the database, the code provides a function to open the Org > file with the passwords in Read-Only mode, sets a timer after which the > buffer is killed and provides functions for copying the password without > it getting into the kill-ring. It also provides two types of functions > for generating passwords: strings of random characters, and random words > of the correcthorsebatterystaple-type. The README file in bitbucket has > detailed information about the usage. > > If there is interest from the community this can also go to /contrib. > > Best, > > Jorge. -- Ramon Diaz-Uriarte Department of Biochemistry, Lab B-25 Facultad de Medicina Universidad Autónoma de Madrid Arzobispo Morcillo, 4 28029 Madrid Spain Phone: +34-91-497-2412 Email: rdiaz02@gmail.com ramon.diaz@iib.uam.es http://ligarto.org/rdiaz