blob: 86f24a4975163249cf78e2c1fc0bd808ffca1d2d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# eno
Encrypted notes, oui.
[View Better Docs](https://stigr.org/eno.html)
Install with a single command:
```sh
curl -sSL https://gitlab.com/whiteboardguy/eno/raw/master/install.sh | sh
```
Or install with `go install gitlab.com/whiteboardguy/eno/cmd/eno@latest` if you have **Go** set up.
## Motivation
I wanted encrypted notes designed for linux. Not the gnupg all-in-one mess, nor
something as "javascripty" as Notesnook (*amazing tho*). Something for the
terminal. Something quite simple. Something that could be synced and backed up
using just git (TBD).
## Usage
```sh
# Initialize config
eno init
# Create an encrypted note (passphrase)
eno new my-note
# Create a note and open editor right after
eno new my-note -e
# Use your SSH key instead of a passphrase
eno new secret --ssh
# Edit an existing note (decrypts, opens $EDITOR, re-encrypts on save)
eno edit my-note
# Encrypt any file with a passphrase
eno encrypt document.pdf
# Decrypt any .eno file
eno decrypt document.pdf.eno
# Set up SSH key for note auth (Ed25519 only)
eno ssh init
```
SSH mode uses X25519 ECDH key exchange. Passphrase mode uses Argon2id. Both use ChaCha20-Poly1305.
Editor defaults to `$EDITOR %s`. To use a different editor, set `EDITOR_STRING` in `~/.config/eno/eno.conf` — `%s` is replaced with the temp file path.
**Security note:** An attacker who modifies `EDITOR_STRING` could execute arbitrary commands when you edit a note. Verify the config value before using `eno edit`, or wait for upcoming versions with a built-in editor.
|