aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md126
1 files changed, 29 insertions, 97 deletions
diff --git a/README.md b/README.md
index 33cd0a7..86f24a4 100644
--- a/README.md
+++ b/README.md
@@ -1,11 +1,16 @@
-# Eno
+# eno
-**Encrypted Notes, Oui.**
+Encrypted notes, oui.
[View Better Docs](https://stigr.org/eno.html)
-Eno is a Linux CLI tool for encrypted notes authenticated by your SSH key — no
-cloud, no daemon, no extra passwords.
+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
@@ -14,109 +19,36 @@ 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).
-<!-- TODO: add terminal recording or GIF showing eno in action -->
-
-## Quick Start
-
-```bash
-eno init
-eno new my-note
-eno new my-note -e
-eno new my-note --ssh
-eno edit my-note
-```
-
-## Install
-
-Install Go if you don't have it:
-
-```bash
-# Arch Linux
-sudo pacman -S go
-# Fedora
-sudo dnf install golang
-# Debian / Ubuntu
-sudo apt install golang
-```
-
-Then install eno:
-```bash
-go install gitlab.com/whiteboardguy/eno/cmd/eno@latest
-```
-
## Usage
-### `eno init`
-
-Creates default config in `~/.config/eno/eno.conf` (`$XDG_CONFIG_HOME/eno/eno.conf`).
-
-### `eno new <note>`
-
-Creates encrypted note. Defaults to `~/.EnoNotes/<note>.eno`. Use `-o` for custom path.
-
-| Flag | Description |
-|---|---|
-| `-o, --output` | Output file path |
-| `-e, --edit` | Open editor after creating |
-| `--ssh` | Use SSH key instead of passphrase |
-
-### `eno edit <note>`
-
-Decrypts, opens in editor, re-encrypts on save. Temp file securely wiped on exit.
-
-### `eno encrypt <file>`
-
-Encrypts any file with passphrase. Output defaults to `<file>.eno`.
-
-| Flag | Description |
-|---|---|
-| `-o, --output` | Output file path |
-
-### `eno decrypt <file>`
-
-Decrypts `.eno` file. Output defaults to `<file>` (`.eno` stripped).
-
-| Flag | Description |
-|---|---|
-| `-o, --output` | Output file path |
+```sh
+# Initialize config
+eno init
-### `eno ssh init`
+# Create an encrypted note (passphrase)
+eno new my-note
-Registers SSH key for note auth. Writes key paths to config. Ed25519 only,
-passphrase-protected private keys required.
+# Create a note and open editor right after
+eno new my-note -e
-## Configuration
+# Use your SSH key instead of a passphrase
+eno new secret --ssh
-`~/.config/eno/eno.conf` (`$XDG_CONFIG_HOME/eno/eno.conf`)
+# Edit an existing note (decrypts, opens $EDITOR, re-encrypts on save)
+eno edit my-note
-| Key | Default | Description |
-|---|---|---|
-| `EDITOR_STRING` | `$EDITOR %s` or `nvim %s` | Editor command template. `%s` replaced with temp file path |
-| `DATA_DIR` | `~/.EnoNotes` | Encrypted notes directory |
-| `SSH_INIT` | `false` | SSH initialized flag |
-| `DEFAULT_SSH_PRIV` | — | Default SSH private key path |
-| `DEFAULT_SSH_PUB` | — | Default SSH public key path |
+# Encrypt any file with a passphrase
+eno encrypt document.pdf
-## How It Works
+# Decrypt any .eno file
+eno decrypt document.pdf.eno
+# Set up SSH key for note auth (Ed25519 only)
+eno ssh init
```
-<header-length>:<gob-encoded headers><ChaCha20-Poly1305 ciphertext>
-```
-
-- `header-length` — ASCII decimal, `:`-terminated
-- Headers — salt, nonce, auth type (passphrase or SSH), per-recipient wrapped keys
-- Ciphertext — ChaCha20-Poly1305 encrypted
-| Mode | Key Derivation | Cipher |
-|---|---|---|
-| Passphrase | Argon2id (1 pass, 2MB memory, 2 parallelism) | ChaCha20-Poly1305 |
-| SSH | X25519 ECDH ephemeral key exchange per recipient | ChaCha20-Poly1305 |
+SSH mode uses X25519 ECDH key exchange. Passphrase mode uses Argon2id. Both use ChaCha20-Poly1305.
-Ed25519 keys converted to X25519 for ECDH. 32-byte random note key encrypted
-per recipient.
+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.
-## Build from source
-
-```bash
-go build -o eno ./cmd/eno
-```
+**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.