feat: add multiple, remote recipients support
This commit is contained in:
parent
e1c9ee0c9c
commit
c6ac0d6043
10 changed files with 220 additions and 90 deletions
23
README.md
23
README.md
|
|
@ -11,13 +11,21 @@
|
|||
it encrypts the new contents into an [age](https://github.com/FiloSottile/age) file that
|
||||
you can store, _relatively_ safe, anywhere.
|
||||
|
||||
|
||||
## Features
|
||||
|
||||
- Simple notebooks management with paths autocompletion
|
||||
- Passphrase-less, fully-encrypted notes, compatible with existing SSH keys
|
||||
- No external `age` binary needed
|
||||
- Almost all `age` advantages, like having multiple keys for encryption and decryption
|
||||
- Remote (HTTP) public keys import: e.g: github.com/<username>.keys
|
||||
|
||||
## Install
|
||||
|
||||
```shell
|
||||
pipx install halig # or pip
|
||||
```
|
||||
|
||||
|
||||
## Setup TLDR
|
||||
|
||||
```shell
|
||||
|
|
@ -26,9 +34,13 @@ ssh-keygen -t ed25519
|
|||
mkdir -p "${XDG_CONFIG_HOME:-$HOME/.config}/halig"
|
||||
cat << EOF > "${XDG_CONFIG_HOME:-$HOME/.config}/halig/halig.yml"
|
||||
---
|
||||
notebooks_root_path: /home/$(id -un)/Documents/Notebooks
|
||||
identity_path: /home/$(id -un)/.ssh/id_ed25519
|
||||
recipient_path: /home/$(id -un)/.ssh/id_ed25519.pub
|
||||
notebooks_root_path: ~/Documents/Notebooks
|
||||
identity_paths:
|
||||
- ~/.ssh/id_ed25519
|
||||
recipient_path:
|
||||
- ~/.ssh/id_ed25519.pub
|
||||
- https://github.com/<username>.keys
|
||||
- https://gitlab.com/<username>.keys
|
||||
EOF
|
||||
```
|
||||
|
||||
|
|
@ -38,4 +50,5 @@ EOF
|
|||
halig edit some_notebook # edit today's note relative to <notebooks_root_path>/some_notebook
|
||||
halig edit some_notebook/foo # edit <notebooks_root_path>/some_notebook/foo.age
|
||||
halig notebooks # list current notebooks
|
||||
```
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue