Skip to content

Mr-1311/obsidian-age-encrypt

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published