Markpad icon indicating copy to clipboard operation
Markpad copied to clipboard

Optionally load/save encrypted files for security notes

Open xVadr opened this issue 3 weeks ago • 1 comments

What problem would this solve?

Allow the use-case of using this editor to keep secure notes

What would you like?

It would be great if this could allow to save a file encrypting it, later allowing to open it decrypting on-the-fly, so no additional tools are needed to keep secure notes and everything happens in memory, avoiding unencrypted copies in the File System.

Popular, easy to use (passphrase-based), audited , future-proof and safe encryption libraries already exist to do the heavy lifting properly, like age, and it's Rust implementation rage and TypeScript implementation typage, which as I understand, provide easy integration via API calls, or direct dependency chain.

Has another app got this right?

Stegano's LockNote famously offered a simple app that always asked for a passphrase and encrypted its content next to the app itself, which was convenient and secured, but it has grown bloated in version 2 and does not support markdown, only plain text.

Notepad3 is a great minimal editor with lots of useful features, including the capability to save/load encrypted notes, but it's markdown "rendering" is way below what this app can do,

Both above use AES-256 which is still strong but with old key-derivation-functions (KDF), which could eventually compromise their encryption, but funcitonality-wise, they offer what would be needed to hace a secure note that can be opened, edited and saved without ever touching the disk unencrypted.

The suggested library age is audited and opinionated, always defaulting to current strong defaults, so it's simple to use while keeping its encryption secure. BUT I'm not an expert in encryption, so any other libraries that better fit this project, while offering at least AES-256 with Argon2id or PBKDF2 for key derivation would be great to have.

Which platform is this for?

All platforms

Your Markpad version and how you installed it

2.9.2 Windows standalone

xVadr avatar Nov 13 '26 18:11 xVadr

Thanks for the detailed write-up. Encryption is something most Markdown editors leave out on purpose: an encrypted file stops being a plain .md that other apps, git, and search can read, a forgotten passphrase means the note is gone for good, and keeping every plaintext copy off disk is hard to guarantee once autosave and crash recovery are involved.

An encrypted folder tool such as Cryptomator or VeraCrypt gets you the same result today: put your notes in the vault, open them in Markpad as usual, and they're only readable while the vault is unlocked.

PathGao avatar Nov 27 '26 06:11 PathGao