Here is an idea that came up in our lab, in plain words. Think of an electron. Physics can’t tell you exactly where it is, only the cloud of places it probably is, sharpened by what it bumps into. Now imagine two of them, a sender and a receiver, inside a space that holds a file. You can only read the file if you can find where the sender sits in relation to the receiver. To everyone else, there is only the cloud. And if you make the space bigger or stranger, the cloud gets harder to see through.
That sounds like a metaphor. It is closer to a specification. The encryption standard the US government published in 2024 to withstand quantum computers, ML-KEM (FIPS 203), works on almost exactly this principle. This piece walks you through it with two small tools you can run yourself, and then shows why it matters most for one kind of data: the patient record.
An intuition worth taking seriously
The real name for the electron cloud is Learning With Errors, a problem introduced by the cryptographer Oded Regev in 2005. Here is how the pieces of the intuition map onto it.
| The intuition | The real concept |
|---|---|
| The space holding the electrons | A lattice: a grid of points in many dimensions |
| The electron’s position | A secret point in that grid, the receiver’s private key |
| Position known only as a probability | Every published clue is the secret plus random noise |
| The probability both sides agree on | Two values that come out close but unequal, rounded to the same bit |
| A bigger, stranger space is harder | The security level: ML-KEM-512, 768 and 1024 differ in exactly these dials |
One correction to the intuition, because it matters. A single probability between one and a hundred is only about seven bits of secret. Anyone could guess it in a hundred tries. The strength comes from the size of the space, which has to be on the order of 2128 possibilities, a number with thirty-nine digits. The cloud is what makes that space impossible to search with shortcuts.
Run the electron cloud yourself
The lab below runs a real, toy-sized version of this math in your browser. A sender hides 64 secret bits. The receiver, who holds the key, cancels out the noise and reads them back. An attacker without the key tries two ways to break in: solving the equations directly, and, when the space is small enough, trying every possible key.
You’ll see two rings. Each dot is one secret bit. Dots near the top read as 0, dots near the bottom read as 1. The receiver’s ring shows two tight clouds. The attacker’s ring is scattered everywhere.
Try the presets in this order. Each one teaches one thing.
- Balanced. The sender and receiver agree on every bit. The attacker gets about half right, which is exactly what a coin flip gets.
- No cloud. Set the noise to zero. The published clues become exact equations, and ordinary high-school algebra solves them. The attacker gets every bit. This is the lesson most people find surprising: the randomness is not decoration, it is the lock.
- Cloud too wide. Turn the noise up until the receiver’s dots spill past the halfway line. Now the attacker is still guessing, but the receiver is making mistakes too. Security has a ceiling, and the ceiling is set by whether the right person can still read the message.
- Tiny space. Shrink the space to three dimensions. There are under a million possible keys, and the attacker simply tries them all. Size is not optional.
Real systems choose these dials so the receiver almost never mis-reads a bit, and the attacker’s search runs longer than the age of the universe. The lab lets you feel that balance with your hands, which no description quite does.
Why patient data needs this now
Most data loses value fast. Patient data does not. A diagnosis, a genome or a mental-health history is as sensitive in thirty years as it is today. That creates a specific threat called harvest now, decrypt later. Someone records encrypted health data today, stores it, and waits for a quantum computer able to break the older encryption that protected the exchange.
The older methods for agreeing on a key, the ones built on the mathematics of RSA and elliptic curves, are the ones a large quantum computer would break. The electron-cloud style of key agreement is designed so that it doesn’t. That’s why NIST standardized it in 2024, and why the sensible move is to adopt it now for anything with a long shelf life, rather than after the first quantum computer is announced.
There’s an honest distinction worth keeping. Encryption that protects a stored file (such as AES with 256-bit keys) is already considered strong against quantum attack. The weak point is the moment two parties agree on a key, and the signatures that prove a document wasn’t altered. Those are where post-quantum methods go.
Two ways to make a record safe
Encryption protects data while it is locked. Most of the time, though, health data has to be used: analyzed, shared with a research partner, or handed to an AI model to summarize. For that, there are two fundamentally different approaches, and choosing the wrong one is a common, expensive mistake.
- Destroy the identity for good. In the industry this is de-identification. Names, numbers and addresses are removed or replaced with tokens. Dates are shifted, ZIP codes truncated, ages over 89 grouped together. The key that could link a token back to a person is thrown away. This follows the shape of the HIPAA Safe Harbor method. It suits research releases and analytics, where nobody needs to know who anyone is.
- Disguise it and keep the key. In the industry this is pseudonymization with a token vault. Every identifier is replaced by a realistic fake that has the same shape: a fake Social Security number, a fake phone number, a fake name. The originals are locked in an encrypted vault that never leaves your machine. An AI model or a vendor can work on data that looks real, and the true values are restored locally afterward. Destroying the vault’s key, called crypto-shredding, makes the originals unrecoverable on demand.
The electron-cloud lab above is the theory. The lab below is the product: Harbor in miniature, the same design as the privacy layer we’re building, shrunk to run in your browser on synthetic patients. It has three modes: Classify finds the identifiers, Obfuscate destroys them, and Falsify disguises them with a vault you can restore or shred. Flip any patient between a chart and a FHIR bundle, the standard format hospitals exchange records in, holding the patient, an encounter and a lab result. Watch the identity change while the clinical codes and the lab value stay put. Under each mode is a panel showing exactly what would leave the building, with a leak check that scans it for every original identifier.
Run Classify first and watch the leak check go red. Finding sensitive data protects nothing on its own. It is the step before protection, and plenty of products stop there.
If the fakes look real, how do you know a fake Social Security number isn't someone's real one?
The lab issues fakes from a range that is never assigned to real people: Social Security numbers starting with 9 aren't issued as SSNs, and phone numbers in 555-0100 to 555-0199 are reserved for fiction. Design choices like that are what make a disguise safe to hand out.
Isn't de-identified data anonymous?
Not automatically. Combinations of ordinary details, such as a birth year, a three-digit ZIP and a rare diagnosis, can point back to a person. HIPAA allows two routes: a strict removal list (Safe Harbor), or an expert's determination that the risk of re-identification is very small. We have that expert on our staff. Our tools produce the evidence, measuring how identifiable each record still is, and our expert reviews it, makes the determination and documents how it was reached. If you'd rather have an independent review, we hand the same evidence to an outside expert of your choosing. Either way, the software never declares the job done on its own.
What GDPR asks of the same two modes
HIPAA is an American law with a checklist. Europe’s GDPR has no checklist and no expert sign-off route. It asks one question of any data set: can a person be identified “by all the means reasonably likely to be used”? That test sits in Recital 26 of the GDPR, and the answer decides which rules apply. The two modes land in different places.
| Destroy the identity (Obfuscate) | Disguise it (Falsify) | |
|---|---|---|
| GDPR term | Anonymisation | Pseudonymisation (Article 4(5)) |
| Personal data for you? | No, if nobody can reasonably re-identify it | Yes, because you hold the key |
| Personal data for the recipient? | No, under the same test | Possibly not, after the 2025 ruling below |
| How GDPR treats it | Outside the regulation | A named safeguard (Articles 25 and 32) |
The 2025 ruling that matters. On 4 September 2025 the EU Court of Justice decided EDPS v SRB (Case C-413/23 P). A public body had pseudonymised people’s comments and sent them to Deloitte for analysis, keeping the key to itself. The Court held that pseudonymised data must not be regarded as personal data “in all cases and for every person”. Depending on the circumstances, pseudonymisation can stop anyone other than the controller from identifying the person, so that for them the person “is not or is no longer identifiable” (Court press release No 107/25).
That is the shape of the disguise mode. The vault and its key never leave your machine. A vendor or an AI model receives realistic fakes and no way to reverse them. Under the Court’s reasoning, that data may not be personal data in the vendor’s hands at all. And shredding the vault key gives you a practical way to act on a deletion request under Article 17.
The ruling comes with two limits, and we won’t skip them.
- Your own duties don’t shrink. The Court said that, for the duty to inform people, identifiability is judged “at the time of collection of the data and from the point of view of the controller”. You still need a lawful basis for health data, which GDPR treats as a special category (Article 9), and you still tell patients who will receive their data before anything is masked.
- “Possibly” is doing real work. The ruling turns on the circumstances. Free-text notes and rare combinations of details can still point to a person, so the masking has to come with an assessment. Ours uses the same evidence and the same staff expert as the HIPAA determination above, measured against the European test. If you’d rather, an independent reviewer gets the same evidence.
What it costs to get this wrong
Healthcare has the most expensive data breaches of any industry. IBM’s 2025 Cost of a Data Breach report puts the average healthcare breach at $7.42 million, and it has topped the industry list for more than a decade. That number counts detection, notification, legal exposure and lost business. It doesn’t count the patient’s lost privacy, which no settlement returns.
The other cost is the one organizations pay to avoid that risk. Privacy tooling is usually rented: a subscription per seat or per record, forever, for software that runs on someone else’s infrastructure, which means sending the very data you’re trying to protect to another party. We think that model has it backwards for health data. The protection should run where the data already lives, and the organization should own it outright.
What we are building
The first lab above teaches the theory. The second is a miniature of the real thing, with simplified detection so it fits in a web page. Harbor is the privacy layer of Pharos, the data platform we’re building. It runs locally, next to the data, and handles the formats health data actually arrives in: spreadsheets, FHIR, HL7 and C-CDA documents, and free-text notes. Here is where it stands, without rounding up.
| Capability | Status |
|---|---|
| De-identification and reversible masking of patient records, run locally | Working |
| Tamper-evident audit evidence signed with a post-quantum hybrid signature (Ed25519 plus ML-DSA) | Working |
| Encrypted local vault (AES-256) for reversible masking | Working |
| Post-quantum key exchange (hybrid X25519 plus ML-KEM-768) | Planned |
| Moving format-preserving encryption to the NIST-approved FF1 method | Planned |
| Computing on data that is never decrypted (fully homomorphic encryption) | Research demo |
The last row is the long horizon, and it is the reason we put so much work into the rest. It gets its own section.
Looking ahead · Our research track
The long game: computing on data nobody can read
Everything above protects data by changing it or hiding it before it goes anywhere. Fully homomorphic encryption (FHE) goes further. It lets a computer do math on data while the data stays encrypted. The answer comes back encrypted too, and only you hold the key that opens it.
Think of a locked glovebox. You put your records inside and lock it. Someone else reaches in through the gloves and does the work: adds, multiplies, runs a model. They never see what’s inside, and they can’t take anything out. You get the box back and unlock the result.
It connects straight back to the first lab on this page. The leading FHE schemes are built on the same lattice math as the electron cloud: every encrypted number carries a little noise. Each calculation makes the cloud wider, and when it gets too wide the scheme has to stop and clean it up, a step called bootstrapping. That clean-up is most of why FHE is slow today.
Why we think this is the next big thing
Right now, an organization that wants a powerful AI model to work on sensitive data has two choices, and both are bad.
- Send the data to someone else’s model. Any hosted model, open or closed, has to see your data to work on it. For patient records, trade secrets or unreleased research, that’s often a non-starter.
- Buy your own GPUs and run a model in-house. This keeps the data home, but it is a quiet, permanent cost: hardware, power, staff and upgrades, paid mainly to avoid trusting anyone else. We broke down that rent-versus-buy decision in the real cost of AI.
FHE is the third option. You send encrypted data to whichever model host you like, and the host computes without ever being able to read your data. It doesn’t matter whose model it is or where it runs, because the host never holds a key. You stop paying for GPUs as a privacy measure and start choosing hardware on price and performance. The model owner keeps their model, you keep your data, and neither has to trust the other.
Where it actually stands
- FHE in a consumer product Shipping
Apple uses homomorphic encryption for Live Caller ID Lookup in iOS 18 and for Enhanced Visual Search in Photos (Swift.org, Apple ML Research)
- A full open model running encrypted Demonstrated
Llama-3-8B generated text under FHE in February 2026, at under 100 seconds per output token on a GPU (Cachemir, arXiv:2602.11470)
- The speed gap on ordinary computers Gap
FHE takes thousands to tens of thousands of times longer than computing on unencrypted data (IEEE Spectrum, March 2026)
- Dedicated chips Hardware
Intel’s Heracles chip ran key FHE operations 1,074 to 5,547 times faster than a server CPU. Intel calls it “like the first microprocessor” (IEEE Spectrum, March 2026)
-
Read that timeline as a trajectory. Encrypted AI already works; it is too slow for a chat window today, and purpose-built hardware is already cutting the gap by three orders of magnitude. We think the gap closes within years, not decades, and the organizations ready for it will be the ones whose data pipelines were built to keep data private from the start.
- We are here · we're building
What we have today
Harbor carries a working FHE research demo. A client encrypts a patient’s numbers, a server runs a simple risk score on them without ever being able to decrypt anything, and only the client can read the score. It’s one small model and it runs far slower than the unencrypted version, so it is a demonstration, not a product.
That’s deliberate. The masking and vault you used above are how health data gets put to work safely now: the disguise mode lets any model work on realistic fakes today. FHE is the road to letting a model work on the real thing without seeing it. We’re building both, in the same tool, so the switch is an upgrade rather than a rebuild.
If you’re an organization weighing how to put health data to work without letting it leave your walls, the pieces above are built for that, and you own what we install. See how we price, or read the earlier pieces on whether your data is safe and the real cost of AI.
What we will not claim (anti-fabrication)
Post-quantum encryption is quantum-proof forever.
It rests on a problem nobody knows how to solve efficiently, with or without a quantum computer. That is strong evidence, not proof. It's why careful systems run the new method and a classical one together, so a surprise break in either still leaves the other standing.
The labs on this page are secure enough for real data.
They are teaching tools, sized so you can watch them work and watch them fail. The toy key exchange uses tiny parameters, and the masking lab uses simplified detection. Never paste real patient data into either.
Masking your data makes you GDPR compliant.
Compliance covers the whole processing: a lawful basis, telling people who receives their data, security, and their rights. Strong pseudonymisation lowers the risk and can change what a recipient holds, as the 2025 ruling shows. It doesn't replace the rest, and this article isn't legal advice.
You can already run a chatbot on encrypted data.
You can run one, slowly. A full 8-billion-parameter model has generated text under FHE, taking up to about a minute and a half per output token on a GPU. That's a milestone, not a product. Anyone selling encrypted AI chat at normal speed today is selling something else, usually trusted hardware or masking.
Want to talk through your own data? Get in touch, or see how we work on AI consulting.
––