mirror of
https://github.com/mr-1311/obsidian-age-encrypt.git
synced 2026-07-22 05:36:14 +00:00
No description
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 |
||
|---|---|---|
| docs | ||
| src | ||
| .editorconfig | ||
| .eslintignore | ||
| .eslintrc | ||
| .eslintrc.js | ||
| .gitignore | ||
| .npmrc | ||
| esbuild.config.mjs | ||
| LICENSE | ||
| main.ts | ||
| manifest.json | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| styles.css | ||
| tsconfig.json | ||
| version-bump.mjs | ||
| versions.json | ||
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
