reddit / emacs

My "age-mode" for working with age encrypted files

podtatranec ยท 2022-12-04 16:58
Heya! Few days ago in [an earlier thread](https://www.reddit.com/r/emacs/comments/z9x84d/age_encryptiondecryption_package/?utm_source=share&utm_medium=web2x&context=3) I asked about any existing package for working with age encrypted files. Few folks pointed me in the right direction so I started working on this at https://codeberg.org/sochotnicky/age-mode The package is... experimental. There are a few known bugs (and many unknown I am sure). But things work in happy-path scenarios when you have correct identities defined and whatnot. I mostly copied over things from EPA package and adjusted for GPG->age differences (fortunately age is much simpler to work with). So when things are set up right you can get transparent age file decryption on file open and encryption on save. There's a few other accessory functions as well. Package needs some refactoring, more documentation, better error handling, support for different ways to specify recipients/identities, figuring out why editing over TRAMP saves unencrypted files and more. If someone feels like helping out I'd be happy to accept patches :-) I haven't really done that much elisp coding, but I've enjoyed the process so far. I am mostly just scratching my own itch here but who knows, it might help someone else...