Skip to content

Commit c5410bd

Browse files
committed
v1.2.0-beta
feat: add snippet encryption (AES-256-GCM + Argon2id)
1 parent c64fb08 commit c5410bd

7 files changed

Lines changed: 870 additions & 87 deletions

File tree

CHANGELOG.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,29 @@ All notable changes to sinbo will be documented here.
44

55
---
66

7+
## 1.2.0-beta - 2026-04-08
8+
9+
### Added
10+
11+
- **Snippet encryption**`sinbo add <name> --encrypt` prompts for a password and stores the snippet as an encrypted `.enc` file. `sinbo get` detects encrypted snippets automatically and prompts for the password.
12+
- Encrypted snippets are listed normally with a `Locked` indicator. `sinbo list --show` displays `[encrypted]` instead of the content.
13+
- `sinbo search` skips the content of encrypted snippets — only the name is matched.
14+
- `sinbo remove` now correctly deletes `.enc` files alongside metadata.
15+
16+
### Changed
17+
18+
- `storage::exists()` now checks for both `.code` and `.enc` files — previously encrypted snippets were invisible to duplicate checks.
19+
- `sinbo edit` on an encrypted snippet now returns a clear error instead of silently operating on empty content.
20+
- Editor undo corruption: if the editor is closed without saving, or the resulting content is identical to what was written initially (e.g. full undo in vim), sinbo now detects the unchanged state and aborts instead of saving empty or garbage content.
21+
- `storage::save_meta()` extracted as a public method for use by encrypted add.
22+
- `storage::Snippet` now carries an `encrypted: bool` field.
23+
24+
---
25+
726
## 1.1.0 - 2026-04-01
827

928
### Added
29+
1030
- `sinbo search <query>` command — fuzzy search across snippet names and content
1131
- Results are ranked by relevance score, with matching content lines shown inline
1232
- `--tags` / `-t` flag on `search` to scope results to a specific tag
@@ -16,6 +36,7 @@ All notable changes to sinbo will be documented here.
1636
## 1.0.0 - Initial release
1737

1838
### Added
39+
1940
- `sinbo add` — add snippets via editor, stdin, or file
2041
- `sinbo get` — print or copy a snippet to clipboard
2142
- `sinbo list` — list all snippets, with tag filtering and `--show` for inline content
@@ -24,4 +45,4 @@ All notable changes to sinbo will be documented here.
2445
- `--ext` flag for syntax-highlighted temp files in editor
2546
- Tag support across add, edit, and list
2647
- Plain-file storage under system config directory
27-
- Cross-platform: Linux, macOS, Windows
48+
- Cross-platform: Linux, macOS, Windows

0 commit comments

Comments
 (0)