tag:blogger.com,1999:blog-3992530807750384868.post6631512524066851924..comments2022-03-28T08:42:20.497+03:00Comments on emacs-fu: keeping your secrets secretUnknownnoreply@blogger.comBlogger19125tag:blogger.com,1999:blog-3992530807750384868.post-54319007334135999132015-04-06T22:48:23.775+03:002015-04-06T22:48:23.775+03:00This is a very old post, but perhaps someone knows...This is a very old post, but perhaps someone knows about this: is it possible for emacs to assume that the key used for saving a pgp file is the same as the one used to decrypt it?<br /><br />Currently, when opening a gpg file, Emacs will use gpg-agent to ask for the password, and decrypt the file. If close, and re-opened, emacs will open the file without asking for the password, thanks to gpg-agent.<br /><br />However, for any small modification saved, Emacs will ask for the password twice…<br /><br />Any solution known?Jiehongnoreply@blogger.comtag:blogger.com,1999:blog-3992530807750384868.post-43574769639306625802014-05-20T12:22:48.061+03:002014-05-20T12:22:48.061+03:00Nice post! Following some of the comments, as well...Nice post! Following some of the comments, as well as my own main uses, I turned some of this functionality into a simple password-management package: <a href="http://www.emacswiki.org/emacs/SimpleSecrets" rel="nofollow">simple-secrets.el</a>.<br /><br />I wanted something to help me with passwords for web-pages, etc. Instead of storing the passwords in Emacs variables, it has a function to quickly look up a password (Ido-powered) and copy it into the clipboard. One advantage is that passwords are never stored in Emacs memory (though the most recently looked up password is in the kill ring). The package also has convenience for auto-generating new passwords.<br />I've been using it for some months now and I find it quite convenient for this use.<br /><br />Thanks for your blog!<br />JohanSRNielsennoreply@blogger.comtag:blogger.com,1999:blog-3992530807750384868.post-49350934218665997442013-11-06T03:15:07.856+02:002013-11-06T03:15:07.856+02:00I loved this post. FYI: I've made an emacs pac...I loved this post. FYI: I've made an emacs package make a menu to copy the passwords and other sensitive data storted to the clipboard: <a href="https://github.com/PuercoPop/password-vault" rel="nofollow">https://github.com/PuercoPop/password-vault</a>PuercoPophttps://www.blogger.com/profile/07379528198607819536noreply@blogger.comtag:blogger.com,1999:blog-3992530807750384868.post-18102440524305918282013-02-08T04:33:05.874+02:002013-02-08T04:33:05.874+02:00This is great! Now I can fully host my .emacs file...This is great! Now I can fully host my .emacs file to github without fear! Thanks.Anonymoushttps://www.blogger.com/profile/18107339117280618594noreply@blogger.comtag:blogger.com,1999:blog-3992530807750384868.post-74382600846009462582012-12-12T14:20:10.475+02:002012-12-12T14:20:10.475+02:00Hi,
Where is a new Web service JCRYPT - for onlin...Hi,<br />Where is a new Web service JCRYPT - for online encryption/decryption your data. It supports encryption for specific user and expiration date for encrypted data. For more details go to https://www.jmasters.info:8443/jcrypt/Anonymoushttps://www.blogger.com/profile/00074771849086998173noreply@blogger.comtag:blogger.com,1999:blog-3992530807750384868.post-13160833322130824902011-12-25T17:39:56.903+02:002011-12-25T17:39:56.903+02:00I was wondering how to keep my passwords for jabbe...I was wondering how to keep my passwords for jabber secure, and this was a perfect solution! Thanks!Derek Mansenhttps://www.blogger.com/profile/14371172078298596213noreply@blogger.comtag:blogger.com,1999:blog-3992530807750384868.post-88194233883827571792011-02-27T13:37:01.278+02:002011-02-27T13:37:01.278+02:00Oh, I've read an article 2 years ago with the ...Oh, I've read an article 2 years ago with the same name "Keeping your secrets secret". Thats interesting.<br />http://emacs.wordpress.com/2008/07/18/keeping-your-secrets-secret/Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3992530807750384868.post-82867733161634280282011-02-23T14:04:51.214+02:002011-02-23T14:04:51.214+02:00@Dave Sailer
You should definitely look at vimpul...@Dave Sailer<br /><br />You should definitely look at vimpulse.<br /><br />It expands viper-mode by adding really nice features such as gi( or ga".<br /><br />With it, you got the power of emacs without any RSI :)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3992530807750384868.post-32216130485243430722011-02-23T03:17:10.153+02:002011-02-23T03:17:10.153+02:00Emacs is working on a `Secrets API' to deal wi...Emacs is working on a `Secrets API' to deal with the problem of storing and using credentials securely. As a first pass, there is a library (secrets.el) that implements an interface to gnome-keyring/kwallet under linux, but things are still being developed for the future.<br /><br />At the moment, secrets.el is part of Emacs 24 (i.e. the unreleased, in-development, next version of emacs). This will require some effort to be useful to non-developers, but if that's beyond your comfort level today, at least know that it's coming in the future.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3992530807750384868.post-47435441233455629742011-02-16T13:27:55.676+02:002011-02-16T13:27:55.676+02:00Excellent! I'll add this for my gnus stuff, to...Excellent! I'll add this for my <a href="http://www.mostlymaths.net/2010/12/emacs-30-day-challenge-using-gnus-to.html" rel="nofollow">gnus stuff</a>, to stop being asked for my 7 words long passwords.<br /><br />I also use this (or similar) to get twittering-mode to remember its connection credentials (as I found in <a href="http://citizen428.net/archives/1511" rel="nofollow">Michael Kohl's blog</a>).<br /><br />Cheers, <br /><br />RubenRuben Berenguelhttps://www.blogger.com/profile/05271991635456932663noreply@blogger.comtag:blogger.com,1999:blog-3992530807750384868.post-81341565448676676132011-02-16T08:26:13.202+02:002011-02-16T08:26:13.202+02:00This is a great way to store your credentials! I&#...This is a great way to store your credentials! I'll add this to the identica-mode documentationGabriel Saldanahttps://www.blogger.com/profile/07356044688124029265noreply@blogger.comtag:blogger.com,1999:blog-3992530807750384868.post-16590001730287870412011-02-14T22:52:11.968+02:002011-02-14T22:52:11.968+02:00What about that:
(defun run-secrets-hook ()
(re...What about that:<br /><br />(defun run-secrets-hook ()<br /> (require 'secrets))<br /><br />(add-hook 'identica-mode-hook 'run-secrets-hook)sementehttp://semente.taurinus.orgnoreply@blogger.comtag:blogger.com,1999:blog-3992530807750384868.post-87348456597817635552011-02-14T11:14:56.002+02:002011-02-14T11:14:56.002+02:00That is a pretty good trick, thanks (as pretty muc...That is a pretty good trick, thanks (as pretty much everything on this blog :) )<br /><br />But after loading the gpg, the passwords are store in plain text in those variables you set up and are displayable with a simple C-h v…<br /><br />I may be asking for the moon here, but is there a way to avoid that ?Renaudnoreply@blogger.comtag:blogger.com,1999:blog-3992530807750384868.post-1647515058329648262011-02-14T00:07:32.884+02:002011-02-14T00:07:32.884+02:00np. I posted a similar thing a while back as a fir...np. I posted a similar thing a while back as a first draft for possible inclusion into the gnus manual. http://splash-of-open-sauce.blogspot.com/2011/02/securing-your-private-email-credentials_7309.htmlRichardhttps://www.blogger.com/profile/04002001799007552493noreply@blogger.comtag:blogger.com,1999:blog-3992530807750384868.post-87159382543671603482011-02-13T21:55:19.457+02:002011-02-13T21:55:19.457+02:00@Dave Sailer: actually, the emacs docs are pretty ...@Dave Sailer: actually, the emacs docs are pretty thorough - they're just not very task-oriented. But it pays off reading them, many gems to be discovered :)<br /><br />@Richard: good point! Updated the post, thanks.djcbhttps://www.blogger.com/profile/15938154009846040711noreply@blogger.comtag:blogger.com,1999:blog-3992530807750384868.post-80076255003883840492011-02-13T19:25:49.690+02:002011-02-13T19:25:49.690+02:00Just one thing - require does work with gpg. My .e...Just one thing - require does work with gpg. My .emacs has this to load my encrypted file containing gnus data after thefirst frame is shown<br /><br />(require 'rgr-misc "rgr-mic.gpg")<br /><br />wiht the "provide" in the file of course.Richardhttps://www.blogger.com/profile/04002001799007552493noreply@blogger.comtag:blogger.com,1999:blog-3992530807750384868.post-73996386747072369212011-02-12T14:15:31.888+02:002011-02-12T14:15:31.888+02:00Being a human being there is much possibility that...Being a human being there is much possibility that we may forge the password. What are all the options that we have then? It is like you almost deleted the file.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3992530807750384868.post-71001412576632040232011-02-11T06:33:50.421+02:002011-02-11T06:33:50.421+02:00Wow. Thank you.
I looked up EasyPG, only to find ...Wow. Thank you.<br /><br />I looked up EasyPG, only to find that it's included with emacs23, which I'm using.<br /><br />Then I checked my system for GnuPG, which, for whatever reason, was already installed.<br /><br />Then I created an encrypted file.<br /><br />And it works.<br /><br />I really, really appreciate your blog. I've been using emacs since 1995, starting with emacsNT, until I finally got to Linux. I know how to use about 0.01% of emacs's capabilities. I've found the various emacs wikis and official manuals somewhat less than useless. Maybe more than somewhat.<br /><br />And I'm not stupid. Really. But it's still hopeless. That stuff was written by mutants for mutants.<br /><br />On the other hand, I am crazy wild about emacs as a writing tool. I wish I could use VIM but I write, and VI/VIM/CREAM are editing tools. Great editing tools. Better editing tools I think, than emacs. But I don't edit all day. And so I'm staying on the emacs side of the fence.<br /><br />But given all that, I'm still not bright enough to figure out emacs. So thanks to you I can at least feel a little smart, sorta, every now and then.Dave Sailerhttps://www.blogger.com/profile/05788886844385560816noreply@blogger.comtag:blogger.com,1999:blog-3992530807750384868.post-59081735158734684602011-02-10T23:14:29.308+02:002011-02-10T23:14:29.308+02:00That's excellent, thanks for letting us know a...That's excellent, thanks for letting us know about that feature! I'm definitely going to use this.Wolfhttps://www.blogger.com/profile/07579030413004130335noreply@blogger.com