Skip to content

Add Copy as Encrypted Text and Decrypt Text from Clipboard - #9

Merged
talakbairam merged 1 commit into
developfrom
feature/copy-encrypted-text
Oct 20, 2026
Merged

talakbairam merged 1 commit into
developfrom
feature/copy-encrypted-text

Conversation

@talakbairam

Copy link
Copy Markdown
Owner

What

Two new commands to send a note to someone as encrypted text:

  • Copy as Encrypted Text… (right-click a note in the Notes tree): asks for a master key twice and puts the encrypted text on the clipboard. The note is not changed or renamed.
  • NoteRoot: Decrypt Text from Clipboard… (Command Palette and the ... menu of the Notes view): reads encrypted text from the clipboard, asks for the key and shows the result in a read-only in-memory document.

Why

Encrypting a note renames the file to .enc, which is awkward when you only want to send the content to another person. This copies the encrypted text and leaves the file alone.

Testing

npm run format, npm run lint and npm run compile pass. I could not try it in the Extension Development Host (F5); the menu entries and both commands still need a manual check there.

Impact

Same NOTEROOT-ENCRYPTED v1 format as before, so tools/decrypt.js and tools/decrypt.ps1 are not affected. Nothing is written to disk by either command. No new settings, no new dependencies.

Notes

  • The other person needs NoteRoot and the same key (send the key by another channel).
  • CHANGELOG.md is not updated in this PR on purpose.

Checklist

  • npm run format, npm run lint and npm run compile finish with no errors or warnings
  • I tried it in the Extension Development Host (F5), or I say above what I could not try (not tried, said above)
  • README.md, CHANGELOG.md and CLAUDE.md are updated if behaviour changed (README and CLAUDE.md yes, CHANGELOG not)
  • No note contents, keys or paths outside the notes folder are logged or written

@talakbairam
talakbairam merged commit 458cd56 into develop Oct 20, 2026
4 checks passed
This was referenced Oct 21, 2026
@talakbairam
talakbairam deleted the feature/copy-encrypted-text branch November 1, 2026 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant