Normally, data has to be decrypted before a computer can do anything useful with it. That moment of decryption is where leaks happen: the server, its operator or an attacker who breaks in can see everything. Fully homomorphic encryption, usually shortened to FHE, removes that moment.
How it works
With FHE, you encrypt your data on your own device and send the scrambled version, called ciphertext, to a server. The server performs math directly on the ciphertext. It never sees the original values. When the server sends back its encrypted answer, only you can decrypt it with your secret key, and the result matches what you would have gotten by computing on the plain data.
Think of a locked glovebox: someone can reach in through the gloves and assemble a part inside, but they cannot see or take what is inside, and only you hold the key to open the box afterward.
The first working construction was published by Craig Gentry in 2009. Modern schemes such as BGV, BFV, CKKS and TFHE are built on lattice-based cryptography, the same family of math behind much of post-quantum cryptography.
The catch: cost
Every operation on encrypted data is far more expensive than the plain version. Ciphertexts are large, and each computation adds noise that must be managed, which means extra work. Depending on the task, FHE can be thousands of times slower or more costly than computing on unprotected data. That is why it is used first on narrow jobs, such as searching records, scoring a model on private inputs or running batch analysis, and why running a large language model under FHE is an active research area, not a routine product feature.
Why it matters for AI
Many organizations cannot send sensitive records, such as patient files, contracts or source code, to a cloud AI service at all. FHE offers a way to use that service while keeping the provider unable to read the prompt or the answer. It is one of several privacy tools aimed at this problem, alongside confidential computing, which relies on trusted hardware instead of math, and zero-knowledge proofs, which prove a result is correct without revealing the inputs.
What FHE does not hide
Encryption protects the content, not the fact that a request happened. The server can still see when a request arrives, how large it is and who sent it. FHE also does not prove the server ran the model it claimed to run. That is a separate problem, addressed by ideas like provable inference.
The practical takeaway
Treat FHE as a promising way to keep a server blind to your data, with real costs in speed and price. When you see a claim about "encrypted AI," ask three questions: which operations run under encryption, how slow is it per token, and who holds the key.