Age Encrypt

approved

by Metin Ur

Secure content encryption using age encryption library

62 stars1,076 downloadsUpdated 8mo agoMIT
View on GitHub

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

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.