Johannes Kaindl8 downloadsReplaces personal data in notes with stable placeholders, keeps the mapping encrypted in the vault and shows the plain text while reading.
🇬🇧 English · 🇩🇪 Deutsch
Replaces personal data in your notes with stable placeholders, keeps the mapping encrypted in your vault and shows the plain text while you read.

Agents with file access, sync services, Git remotes and backups see your notes as plain files. Pseudonymizer replaces names, addresses, phone numbers and similar values in those files with placeholders, so that these readers see placeholders and an encrypted table instead of the people. In Obsidian itself the plain text comes back while you read.
This is pseudonymization, not anonymization. The plugin does not claim to anonymize, and it is no legal advice.
.pseudo) in your vault, and your sync has to transfer files of that type, or your other devices do not see the table. With Obsidian Sync, turn on Sync all other types under Settings → Sync → Selective sync on every device and restart Obsidian: by Obsidian's help, Sync transfers only images, audio, videos and PDFs besides notes by default, and the setting does not sync between devices. Measured once with Obsidian Sync from a Mac to an iPhone: a .pseudo file did not reach the phone within six days, while its folder did (the selective sync settings were not read). Measured again with the setting on at both devices (Obsidian 1.15.1, Mac and iPhone): the .pseudo file reached the phone byte for byte (same length and SHA-256). The plugin cannot check your sync and says so during setup.The plugin can be installed in three ways.
Once the plugin has passed the store review: Settings → Community plugins → Browse, search for Pseudonymizer, Install, Enable.
Download main.js, manifest.json and styles.css from the latest release, copy them into the folder pseudonymizer inside your vault's plugin folder (<vault>/.obsidian/plugins/) and enable the plugin under Settings → Community plugins.
Add johannes-kaindl/pseudonymizer as a beta plugin in the BRAT plugin.
Everything below is a command in the command palette. Commands carry an icon, so they are reachable on a phone as well. Examples in this README use invented values only (Max Mustermann, [email protected]).
Set up. Set up creates a new key and the first device file in the folder you chose in the settings. You choose the language of the placeholders once for the whole vault (they name a field in that language, for example Person_k3x9m2ab7q_Phone in English and Person_k3x9m2ab7q_Telefon in German). Then the plugin shows the recovery code once. Save it in a password manager; setup only goes on after you confirm that you have saved it. If the folder already holds device files, the plugin points you to Enter recovery code instead of setting up again.
A further device. The device finds device files but no key and reports Locked. Enter recovery code takes the code (paste it from your password manager), checks the typing check symbol, opens the table and writes this device's own file. Show recovery code shows the code again on any unlocked device. A new profile, a new vault ID or a new device means: enter the code once.
Show plain text. Toggle plain text (and, on desktop, the status bar item) switches the display per device; the state is not synced. The plain text appears in reading view and Live Preview with a dotted underline, and the tooltip names the placeholder. With the cursor or selection on a placeholder in Live Preview, you see the placeholder.
Copy. By default, copying from the reading view yields placeholders, also where plain text is shown. In the settings, Copying gives → What I see turns that around. Copy with plain text and Copy with placeholders hand out the other form either way; they copy the selection in the editor and the whole note in the reading view. Plain text only goes out when this device can read every placeholder of the text; otherwise nothing is copied and a notice names the placeholders. Forgotten placeholders stay placeholders. Plain text is put back only where pseudonymizing would replace it: a placeholder in a link target, an image or bare URL, an HTML attribute, a comment, math, a wikilink or code stays a placeholder (otherwise a Markdown preview in the target app could fetch an address that contains the name); the notice counts them.
Pseudonymize. Pseudonymize selection asks what the selection is and whom it belongs to. Pseudonymize this note looks through the text and the text properties and opens the review window: one card per value with Replace, Keep here (this note only, remembered) and Always keep (exception list), plus Belongs to (an existing person, a new one or nobody) and a way to mark further places by hand. Cancel and Esc write nothing, neither to the note nor to the table. The note is written in one step, and only if it did not change while you decided. The plugin keeps no snapshot, because that would lie around in plain text; Obsidian's undo and file history are the way back. A note that comes from mailstone is not touched here; use mailstone's own re-render.
Persons and devices. Open persons and devices has three tabs. Persons searches by any form of a value, shows values and forms of an entry, merges two entries (both identifiers keep resolving; this version does not split them again), detaches a value and starts forgetting. Exceptions is the list of texts that are never replaced. Devices and keys shows the state per device, the state of the saved recovery code and what is still missing after a forgetting. Search by plain name opens Obsidian's search with all placeholders of an entry; the search index itself stays free of plain text. Look up placeholder shows who a placeholder stands for.
Forget a person. Forget person asks for confirmation and lists the values that become unreadable, so you can detach a value that belongs to someone else first. Then this device marks the identifiers of the entry as forgotten, removes the values from its version, turns the key one step forward and writes its device file again. Every other device follows the next time it reads. See below for when a person is forgotten completely.
Replace key and remove device. Replace key creates a new random key and writes this device's version again under it; every other device is locked until you enter the new recovery code there. It is the answer to a lost device, because removing a device does not take its access away. Remove device takes a device that never catches up out of the list, after taking over everything readable from its file; if the file cannot be read any more, whatever only that device knew is lost, and the dialog says so.
For other plugins. The plugin offers a plugin API v1 (status, transform, restore, containsPlaceholder) at app.plugins.plugins.pseudonymizer.api. transform returns only after new assignments are written; it is all or nothing and deterministic. restore is synchronous and reports placeholders it cannot resolve (unknown) separately from forgotten ones (forgotten); a consumer that sends something out treats a non-empty unknown like locked. There is no forget in version 1. The contract is the file pseudonymizer-source in obsidian-kit. By default restore puts the plain text back everywhere, also in link targets, image URLs, HTML attributes and code; the calling plugin is responsible for where the text goes next. With the optional skipAddressesAndCode: true it restores only where transform would replace, the same zones as the plugin's own surfaces (reading view, Live Preview, the copy commands): placeholders in link and image targets, bare URLs (also inside HTML attributes such as href), code, comments, math, embeds, tags and wikilink targets stay (the alias after | is restored), the target of mailto: is restored, and in the front matter each property value is checked on its own. Placeholders left standing count neither in unknown nor in forgotten.
It protects against everyone who sees only the files of your vault. That includes agents with file access, the sync service, a Git remote, backups and any copy of the vault folder. They see placeholders and an encrypted table.
After you forget a person, even you cannot rebuild the name from older copies of the table, once every device has caught up and the saved recovery code has been renewed.
It does not protect against:
mail_id, in_reply_to, references); they stay in plain text and carry the domain and sometimes the user part of the sender.A person is forgotten completely only when the version of every device carries the mark, all devices are on the same key stand, and the saved recovery code has been replaced by the current one and the old one destroyed. Until then, anyone who has an old key or code and an old copy of the table can recover the name. The dialog and the tab Devices and keys show what is missing, for example how many devices have caught up.
More limits of forgetting:
Settings → Pseudonymizer. Help comes first, then the folder of the table, how copying behaves, the status bar item and which groups of detection rules are on (patterns, salutations and greetings, signature blocks, header lines in the text, postal addresses). Choose the folder before you set up. Changing it later moves nothing, and it must not use a folder whose name starts with a dot.
data.json holds settings only, never a name, a value or a placeholder in plain text. The exception list lives in the encrypted table.
A note holds Hello Person_k3x9m2ab7q_2, mail Person_k3x9m2ab7q_Mail where you wrote Hello Max, mail [email protected] (the first spelling of a name carries no counter, each further one does). A placeholder has the form <Person|Organisation>_<ten characters>, optionally followed by a field (Mail, Phone, Address, IBAN, or Telefon, Adresse in a German vault) and a counter from 2 for a further spelling or value. The identifier is pure random, so even with the key a forgotten name cannot be confirmed by trying.
The mapping is written by every device into its own file, and every device reads the union of all files it can open. Entries only get added; a forgetting mark wins against everything. The files are sealed with AES-256-GCM through WebCrypto, with a key that is turned forward on every forgetting. No cryptography is hand-rolled: the plugin uses the shared building blocks of the kit and no scheme of its own.
Finding is rule-based and runs locally: known values, patterns (mail address, phone number, IBAN with check digits), salutations and greetings, signature blocks, header lines in the text and postal addresses (with low certainty). Overlapping hits are resolved: the longer one wins. Nothing is replaced in code, in link targets, in URLs, in tags, in comments and in maths.
Each of these is known and not hidden.
What the finding misses or gets wrong
[[Max Mustermann]]) stays as it is; the display text after | is replaced.mailto: links lead nowhere after the replacement: a mail address is also replaced in a mailto: target and in an autolink.Where the plain text is not shown, and where it goes out
Names and notes
[email protected] becomes [email protected]). The extension is never read. Known values with a hyphen (Hans-Peter Muster, [email protected]) are replaced as a whole in a file name too; a mail address that is not known yet is read greedily there: hyphens and underscores belong to its local part, so a word in front goes into the placeholder with it ([email protected] becomes one placeholder for [email protected]; replacing too much is the harmless mistake). A space, a bracket, a placeholder or another value in front (a known name, a phone number) ends the address; that value stays a value of its own. A known address, one from the mail header, one in keep and one on the exception list take precedence and replace only themselves, so with a known [email protected] the name [email protected] keeps hans- in plain text.parseYaml) of the front matter block of the text being changed equals what the plugin read. Dates, times, booleans and null never go to the finding.Keys, devices and sync
cover: https://…), a wikilink or code keeps its placeholder; keys, list markers, continuation lines and comment lines are never restored..pseudo out unless Sync all other types is on (see Requirements); with the setting on at both devices, the file arrived byte for byte (measured once, Mac to iPhone).Code: AGPL-3.0-or-later (LICENSE). Documentation: CC BY-SA 4.0 (LICENSE-DOCS). Dual-license option: LICENSING.md.