# Eno **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. ## 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). ## 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 ` Creates encrypted note. Defaults to `~/.EnoNotes/.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 ` Decrypts, opens in editor, re-encrypts on save. Temp file securely wiped on exit. ### `eno encrypt ` Encrypts any file with passphrase. Output defaults to `.eno`. | Flag | Description | |---|---| | `-o, --output` | Output file path | ### `eno decrypt ` Decrypts `.eno` file. Output defaults to `` (`.eno` stripped). | Flag | Description | |---|---| | `-o, --output` | Output file path | ### `eno ssh init` Registers SSH key for note auth. Writes key paths to config. Ed25519 only, passphrase-protected private keys required. ## Configuration `~/.config/eno/eno.conf` (`$XDG_CONFIG_HOME/eno/eno.conf`) | 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 | ## How It Works ``` : ``` - `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 | Ed25519 keys converted to X25519 for ECDH. 32-byte random note key encrypted per recipient. ## Build from source ```bash go build -o eno ./cmd/eno ```