From a71e48604adfd1e11d6327ea82786ccce9844a10 Mon Sep 17 00:00:00 2001 From: noa@gaiwan.org Date: Sat, 29 Jun 2024 09:34:29 +0000 Subject: Age encryption support --- config.org | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'config.org') diff --git a/config.org b/config.org index 2c218c6..df37047 100644 --- a/config.org +++ b/config.org @@ -1675,12 +1675,34 @@ This is equivalent to the message of the day present in some shells. I wanted i * Pass(1) The auth-source library allows packages to request password information. It has a password store backend, which is nicer to work with than netrc files. -#+begin_src elisp +#+begin_src elisp :tangle no (require 'auth-source-pass) (add-to-list 'auth-sources 'password-store) (auth-source-forget-all-cached) #+end_src +I'm trying out using passage instead of pass. To work properly, we also need to setup age decryption. I set the age identities file to the file where i keep my identities for the passage store. I don't really use it for anything else, so this is fine for now. + +#+begin_src elisp + (require 'age) + (setopt age-default-identity "~/.passage/identities") + (age-file-enable) +#+end_src + +We also need to make sure we are using rage instead of age. Rage is an implementation of the age command line which allows us to input passwords with pinentry. + +#+begin_src elisp + (setopt age-program "rage") +#+end_src + +Then we can set up auth-source-passage to allow us to use passage as an auth-source backend. + +#+begin_src elisp + (require 'auth-source-passage) + (add-to-list 'auth-sources 'passage-store) + (auth-source-forget-all-cached) +#+end_src + #+begin_src elisp (package-ensure 'pass) #+end_src -- cgit 1.4.1-2-gfad0