Search code examples
emacsemacs23emacs24

Password on Emacs Boot Up


I was wondering whether there is a way to ask for a specific password when booting Emacs? I think I can ask for a pre-defined password which I can define in my .emacs file but I dont know how? I'm mainly interested to do this in an x- or graphical environment..

btw, I do know that the .emacs file can be seen and etc..but in my case it's not an issue.


Solution

  • I use epg to keep encrypted data in file. Then it simply loaded as normal emacs lisp file, as in my config. EPG will automatically ask for passphrase, and you can analyze return code of load function to determine, was loading successful or not