No description
Find a file
Metin Ur 0735d66816 feat: Add settings UI and frontmatter exclusion
This commit introduces a settings tab for the plugin, providing a user interface for configuration.

The main new feature is an option to exclude YAML frontmatter when encrypting an entire file. This is enabled by default to preserve note metadata and prevent breaking Obsidian functionality.

Additionally, this update includes several improvements:
- Ensures a trailing newline is added when encrypting a selection at the end of a file, preventing the cursor from getting trapped.
- Improves newline handling for full-file encryption to maintain file integrity.
- Updates styling for the "Re-encrypt" button for better alignment.
- fixes #2
2025-08-06 02:05:35 +03:00
docs update readme 2025-02-22 17:47:37 +03:00
src feat: Add settings UI and frontmatter exclusion 2025-08-06 02:05:35 +03:00
.editorconfig init 2025-01-18 02:41:32 +03:00
.eslintignore init 2025-01-18 02:41:32 +03:00
.eslintrc init 2025-01-18 02:41:32 +03:00
.eslintrc.js encrypt/decrypt command 2025-01-18 04:27:04 +03:00
.gitignore init 2025-01-18 02:41:32 +03:00
.npmrc init 2025-01-18 02:41:32 +03:00
esbuild.config.mjs encrypt/decrypt command 2025-01-18 04:27:04 +03:00
LICENSE add license 2025-01-19 04:09:16 +03:00
main.ts feat: Add settings UI and frontmatter exclusion 2025-08-06 02:05:35 +03:00
manifest.json feat: Add settings UI and frontmatter exclusion 2025-08-06 02:05:35 +03:00
package-lock.json encrypt/decrypt command 2025-01-18 04:27:04 +03:00
package.json feat: Add settings UI and frontmatter exclusion 2025-08-06 02:05:35 +03:00
README.md update readme 2025-02-22 17:47:37 +03:00
styles.css feat: Add settings UI and frontmatter exclusion 2025-08-06 02:05:35 +03:00
tsconfig.json init 2025-01-18 02:41:32 +03:00
version-bump.mjs init 2025-01-18 02:41:32 +03:00
versions.json init 2025-01-18 02:41:32 +03:00

Age Encryption Plugin

A plugin for Obsidian that provides age-based encryption for your notes.

Caution

This plugin comes with NO WARRANTY and NO RESPONSIBILITY for any data loss or security breaches, use at your own risk

Features

  • Encrypt whole file or selected text using age encryption
  • View and edit decrypted content in memory without writing to disk
  • Compatible with age CLI tool for external decryption
  • Hints can be added to encrypted content

Usage

Call Encrypt Selection command to encrypt selected text or Encrypt File to encrypt the entire file from the command palette.

Security Notes

  • Decrypted content is only held in memory
  • No automatic writing of decrypted content to disk
  • Makes symmetric encryption with a given passphrase, if you lose your passphrase, you lose your data FOREVER
  • Based on your vault sync method, your secrets may get synced before you can decrypt them
  • Regular backups of your notes are recommended

Manual Decryption

Encrypted content is stored in code blocks with language set to age. For example:

-----BEGIN AGE ENCRYPTED FILE-----
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IHNjcnlwdCBrUWE0cmIxOFA3NUNXK3d1
V25pT1Z3IDE4ClBaMFY5NWc3bjZIMUxSNHRYSm9FUHMxamdsWjJ3UlhPZjM0R1pm
WFEzOEkKLS0tIHkwaFZNbmQybndaa2dxMkpxdUpOR01uZUQwK21oaSszai9hWnB3
ejJHaW8KxIr7k/vxvgqX0Dqun83t1yyupFW4JOYLzS9uwRSo5OxhCqf88SvxXbs=
-----END AGE ENCRYPTED FILE-----

You can always save this to a file and decrypt your content using the age CLI tool:

# Install age CLI tool first
age -d secret.age

License

MIT License