Kasukabe Tsumugi42 downloadsEncrypt and preview editable secret code blocks.
Save private content in Obsidian with a secret code block. The plugin renders the block as a clickable secret card; after encryption, only ciphertext JSON is stored in your note, and plaintext is shown temporarily only after the correct password is entered.
Ctrl+F to search quickly.secret.Create a secret code block in any note:
```secret Put private content here ```
```secret
{"v":1,"title":"","hint":"","encrypted":"::","date":"2026-07-04T00:00:00.000Z"}
```
These two blocks will be rendered like:

Click the locked card again and enter the password to view or edit the plaintext.

After clicking an encrypted card, a password modal opens:

After verification, the plaintext editor opens:
secret code block. You can encrypt it again later by clicking the plaintext card.| Action | Entry point | Result |
|---|---|---|
| Encrypt | Click a plaintext card | Enter password and confirmation password, then encrypt and write back to the current block |
| View / Edit | Click an encrypted card | Enter password to open the plaintext editor, where title, hint, and body can be changed |
| Save again | Confirm in the plaintext editor | Re-encrypt with the current password and overwrite the original block |
| Decrypt permanently | Decrypt permanently in the plaintext editor | After second-click confirmation, write plaintext back into the secret code block |
| Search body | Search in the upper-right of the plaintext editor, or press Ctrl+F in the body |
Find, navigate, and flash-highlight matches inside the text area |
Write-back behavior: in source / Live Preview editing state, the current editor block is replaced directly; in Reading view, the file is modified through the Obsidian vault API.
Open Settings → Community plugins → Secret Notes to change Block name.
The default block name is secret. If you change it to private, for example, the plugin will process:
```private Private content ```
⚠️ Passwords cannot be recovered. If you forget the password, the ciphertext cannot be restored. The password hint should be only a reminder; do not put the actual password in it.
main.js, manifest.json, and styles.css from this repository's build output or Release.<vault>/.obsidian/plugins/obsidian-secret-notes/
The entry point is src/main.ts, and build artifacts are written to dist/.
pnpm install
pnpm build # build into dist/
pnpm dev # watch mode
Build output includes:
dist/main.jsdist/manifest.jsondist/styles.cssCopy these three files into .obsidian/plugins/obsidian-secret-notes/ in your vault to load and debug the plugin in Obsidian.
MIT © 2026 Kasukabe Tsumugi