9

sochotnicky/age-mode: An Emacs mode for working with age encrypted files - age-...

 1 year ago
source link: https://codeberg.org/sochotnicky/age-mode
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

age-mode

An Emacs mode for working with age encrypted files.

WARNING: Do NOT edit encrypted files with TRAMP. See Known Bugs for details.

Overview

This package is not (yet anyway) easily installable from (M)ELPA. Given experimental state of this package it will stay like this for a while.

You can use use-package or straight to install from this git repository.

To use it for decoding age encrypted files you need to set age-file-default-identities which is a list of paths that contain your private AGE keys. You also need to run age-file-enabled to enable automatic decryption of age files.

Caveats

Unlike GPG, age files do not contain public keys that were used for encryption. This means that it is not possible to automatically re-encrypt files with the same recipients. To prevent corruption, files decrypted with age require setting of buffer-local variable age-file-recipients. This can be set in the file-local variables or .dir-locals.el.

You can override this behavior by setting two variables:

  • age-file-default-recipients - list of public keys to encrypt to
  • age-file-override-recipients - set to non-nil to use default recipients when buffer-local variable is not set

Known Bugs

Package is in a very early stage of development. It is my first bigger elisp project and as such has many issues. Some are problems I know about, some are unknown but lurking...

The known ones:

  • Decrypting over TRAMP works, but files get saved unencrypted. Here be dragons...
  • Happy-path things work, but when age program fails to decrypt it leaves behind an unused empty buffer and other similar issues.
  • Error handling in general is bad...

Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK