branch: elpa/age
commit 992cab51986633941ef981527d6fdaea4cfb3858
Author: Bas Alberts <[email protected]>
Commit: Bas Alberts <[email protected]>
Add rage configuration examples for pinentry support to README
---
README.org | 27 +++++++++++++++++++++++++--
img/emacs-rage.png | Bin 0 -> 479854 bytes
2 files changed, 25 insertions(+), 2 deletions(-)
diff --git a/README.org b/README.org
index ae910b2d675..fc859694117 100644
--- a/README.org
+++ b/README.org
@@ -20,14 +20,14 @@ files can support in Emacs, e.g. ~.authinfo.age~ should
work fine as well.
Put age.el somewhere in your load-path and:
-#+begin_src elisp
+#+begin_src emacs-lisp
(require 'age)
(age-file-enable)
#+end_src
If you prefer to use ~use-package~, my quelpa configuration looks like:
-#+begin_src elisp
+#+begin_src emacs-lisp
(use-package age
:quelpa (age :fetcher github :repo "anticomputer/age.el")
:ensure t
@@ -74,6 +74,29 @@ those secrets outside of Emacs accordingly. As such age.el
does not
currently support passphrase based age Encryption/Decryption as we
do not have a tty available to provide a passphrase to age (I think).
+You can work around this by using [[https://github.com/str4d/rage][rage]]
instead of age, which is a Rust
+based implementation of the
[[https://github.com/C2SP/C2SP/blob/main/age.md][Age spec]] and which does
support pinentry by
+default and age.el will work with rage as well. An example rage config may
+look like:
+
+#+begin_src emacs-lisp
+(use-package age
+ :quelpa (age :fetcher github :repo "anticomputer/age.el" :branch "scratch")
+ :ensure t
+ :demand
+ :custom
+ ;; use rage for pinentry, note this _has_ to go through customize
+ (age-program "rage")
+ (age-default-identity "~/.ssh/id_rsa")
+ (age-default-recipient "~/.ssh/id_rsa.pub")
+ :config
+ (age-file-enable))
+#+end_src
+
+You will now be able to use passphrase protected ssh keys as well:
+
+#+html:<p align="center"><img src="img/emacs-rage.png"/></p>
+
* Disclaimer
This is experimental software and subject to heavy feature iterations.
diff --git a/img/emacs-rage.png b/img/emacs-rage.png
new file mode 100644
index 00000000000..2d4a762f3cf
Binary files /dev/null and b/img/emacs-rage.png differ