Network security

Homomorphic Encryption Explained: Computing on Data You Cannot Read

Homomorphic encryption lets a cloud server work on your data while it stays encrypted. Here is how it works, where it helps, and where it still falls short.

Cysoro Security TeamPublished · 8 min read
NETWORK SECURITY Homomorphic encryption Compute on data you cannot read. 7 + 5encrypted12decrypted FULLY HOMOMORPHIC — FHEAny computation, still sealed
Quick answer

Homomorphic encryption is a form of encryption that lets someone perform computations on encrypted data and get an encrypted result, so the data never needs to be decrypted to be used. Fully homomorphic encryption (FHE) supports any computation, which means a cloud server can process sensitive data without ever seeing the plaintext.

Key takeaways

  • Homomorphic encryption lets a server compute on ciphertext and return ciphertext, so only the key holder can read the result.
  • Fully homomorphic encryption supports arbitrary computations; partially homomorphic schemes support only one operation, such as addition.
  • The main schemes are BFV and BGV for exact integers, CKKS for approximate real numbers, and TFHE for fast bootstrapping.

Ordinary encryption has a gap: to use your data, someone has to decrypt it first. Homomorphic encryption closes that gap. It lets a server compute on data that stays encrypted the whole time — and only you can read the answer.

What is homomorphic encryption?

Homomorphic encryption is a form of encryption that allows computation to be performed on encrypted data without decrypting it first. You encrypt your data, send the ciphertext to a server, the server computes on the ciphertext, and the result it returns decrypts to the correct answer.

NIST describes it this way: a homomorphic encryption scheme supports an evaluation operation over encrypted data, so that decrypting the evaluated ciphertext gives the same result as computing on the plaintext directly. A fully homomorphic encryption scheme enables this for any computable function.

Think of it as a locked box with gloves built in. The server can reach in, work on what is inside, and hand back a sealed result — but it never sees the contents. That is the whole idea, and it is why the technique is often called the "holy grail" of cryptography.

How does homomorphic encryption work?

Homomorphic encryption works because the encryption scheme preserves the structure of the maths. Adding two ciphertexts gives a ciphertext that decrypts to the sum of the two plaintexts, and multiplying two ciphertexts gives one that decrypts to their product.

Chain enough additions and multiplications together and you can evaluate any computation at all on encrypted data. That is what the word "fully" marks: earlier schemes supported only one operation, and the breakthrough was making both work at once.

There is a catch. Every operation adds a little noise to the ciphertext, and if the noise grows too large, decryption fails. The solution is bootstrapping: homomorphically decrypting the ciphertext inside the encryption to produce a fresh, low-noise ciphertext. Craig Gentry introduced bootstrapping in his 2009 PhD thesis, the first candidate solution to the problem posed by Rivest, Adleman and Dertouzos in 1978.

How homomorphic encryption works1. You encryptdata becomesciphertextyou hold the key2. Server computesadds and multipliesciphertext onlynever sees plaintext3. Result returnsstill encryptedin transit4. You decryptonly you canread the answerThe server does real work on data it cannot read.Decryption of the evaluated ciphertext equals the function applied to the plaintext.
The four steps of a homomorphic encryption workflow. Illustration by Cysoro.

What are the types of homomorphic encryption?

Homomorphic encryption comes in three levels, and the difference is how much computation each one supports. The table below compares them.

TypeOperations supportedDepthExample
Partially homomorphic (PHE)One operation onlyUnlimited for that operationRSA (multiplication), Paillier (addition)
Somewhat homomorphic (SHE)Both addition and multiplicationLimited — noise grows too largeEarly lattice schemes before bootstrapping
Fully homomorphic (FHE)Any computationUnlimited — bootstrapping refreshes noiseBFV, BGV, CKKS, TFHE

Partially homomorphic schemes have been around for decades and are practical: RSA is multiplicatively homomorphic, and Paillier supports addition. They are useful for narrow jobs such as adding encrypted votes or multiplying encrypted values.

Fully homomorphic encryption is the general case. It supports arbitrary functions, which is why NIST treats it as a main tool of privacy-enhancing cryptography, alongside multi-party computation and zero-knowledge proofs.

What are the main FHE schemes?

The mainstream FHE schemes are BFV, BGV, CKKS and TFHE. All of them are lattice-based, resting on the Learning With Errors problem and its ring variant, Ring-LWE. That matters because lattice hardness is the same family behind NIST's post-quantum standards, and Shor's algorithm does not solve it.

  • BFV (Brakerski-Fan-Vercauteren): exact integer arithmetic. Good for counting, voting and financial calculations where every digit must be exact.
  • BGV (Brakerski-Gentry-Vaikuntanathan): exact integer arithmetic, and the first scheme based on standard lattice problems, from 2011-2012.
  • CKKS (Cheon-Kim-Kim-Song): approximate real-number arithmetic, suited to machine learning, where small rounding errors are acceptable.
  • TFHE (Torus FHE): very fast bootstrapping, so arbitrary-depth circuits stay practical, and good for boolean logic.

The 2018 Homomorphic Encryption Standard, published by HomomorphicEncryption.org, describes BGV, BFV and GSW in detail and names CKKS as recently proposed at the time. Since then, CKKS and TFHE have become the most widely used schemes in practice.

Choosing a scheme is a trade-off between exactness, speed and the kind of maths you need. A hospital counting encrypted records wants BFV; a team running encrypted machine-learning inference wants CKKS.

How did homomorphic encryption develop?

The idea is older than the solution by three decades. Rivest, Adleman and Dertouzos posed the problem in 1978: could you compute on encrypted data without decrypting it? For thirty years, the answer was only partial.

Craig Gentry's 2009 PhD thesis gave the first candidate fully homomorphic scheme, using bootstrapping to refresh noisy ciphertexts. In 2011, Brakerski and Vaikuntanathan gave the first solution based on standard lattice problems, and the years since have brought major efficiency improvements and a wave of libraries: Microsoft SEAL, HElib, OpenFHE, HEAAN, FHEW, TFHE and Lattigo.

NIST now runs a privacy-enhancing cryptography program that covers FHE, and its WPEC 2024 workshop presented an overview of FHE functionality and security models. The same lattice maths underpins post-quantum standards, but for everyday accounts a strong, unique password still matters — test yours with our free password strength checker. The technology has moved from a theoretical curiosity to a tool with real, if specialized, deployments.

Where is homomorphic encryption used?

Homomorphic encryption fits anywhere a sensitive-data owner needs someone else to compute on their data. The main use cases are consistent across the sources we reviewed.

  • Healthcare: hospitals encrypt patient data and share it for a joint medical study, so researchers can run statistics without seeing individual records.
  • Finance: banks and insurers run fraud detection or risk models on encrypted data from several institutions, without pooling raw customer data.
  • Cloud computing: a company sends encrypted data to a cloud provider, which runs a query or a model and returns an encrypted result.
  • Private machine learning: a user sends encrypted inputs to a model hosted by someone else, and gets an encrypted prediction back.
  • Government and research: agencies analyse sensitive datasets across departments without exposing the underlying records.

Most of these are pilots or specialized services, not everyday products. The technology works, but the cost in speed and size keeps it in high-value, high-sensitivity niches for now. If your data lives on a website rather than in a research database, the basics come first — check your site with our free SSL checker.

FHE vs the alternativesRegular encryptionfast, but decrypt to useHomomorphic (FHE)compute on ciphertextMulti-party computeinteractive, shared secretsFHE needs no interaction during computation.MPC needs the parties to talk to each other while they compute.FHE is slower than plaintext, but the data stays sealed.Pick FHE when the server must not see the data at all.
When to choose FHE over regular encryption or multi-party computation. Illustration by Cysoro.

How is FHE different from multi-party computation?

Fully homomorphic encryption and secure multi-party computation (MPC) solve the same problem — computing on data you do not want to reveal — in different ways. In MPC, data is secret-shared among participants, and the computation is done interactively, with the parties exchanging messages as they go.

In FHE, data is protected by encryption, and computation on encrypted data does not require interaction. The decryption key may itself be secret-shared among participants, but the server can work alone once it has the ciphertexts.

That difference decides the fit. FHE suits outsourcing to a single untrusted server, such as a cloud provider. MPC suits a group of parties that each hold part of the data and are willing to stay online and interact during the computation.

Both appear in NIST's privacy-enhancing cryptography program, and real systems sometimes combine them: FHE for the heavy computation, MPC for distributing the decryption key.

What are the limits of homomorphic encryption?

The main limits are speed, size and complexity. FHE operations can be thousands of times slower than the same operations on plaintext, and ciphertexts are much larger than the data they hold. A computation that takes a second in the clear can take minutes under FHE.

Noise management adds complexity. Every operation grows the noise in a ciphertext, and bootstrapping to refresh it is itself expensive. TFHE's fast bootstrapping helps, but it does not remove the cost entirely.

Security modelling is another limit. Most FHE schemes are designed for passive attacks, where the adversary sees ciphertexts but does not tamper with them.

For the rest of your security baseline, encryption is one layer among many — see our small business cybersecurity checklist. NIST's 2024 overview notes that most applications require active security, and that decryption failures can leak information if they are not handled carefully. If you deploy FHE, get a cryptographer to review the security model, not just the code.

Is homomorphic encryption secure?

Yes, under the assumptions its schemes rely on. The mainstream schemes rest on Learning With Errors, a lattice problem that is believed to be hard even for quantum computers, and that underpins NIST's post-quantum standards. Shor's algorithm, which breaks RSA and elliptic-curve cryptography, does not solve lattice problems.

That does not mean every FHE deployment is secure. Parameters must be sized correctly, keys must be managed properly, and the system must handle decryption failures without leaking information. A scheme can be sound while an implementation is not, which is why the Homomorphic Encryption Standard exists: to give implementers agreed parameters and security levels.

One more caution: FHE protects data during computation, not the result. If the result itself reveals sensitive information — for example, a model output that leaks a training record — encryption cannot help. Pair FHE with output controls such as differential privacy where the result is sensitive.

How do you get started with homomorphic encryption?

Start with a narrow, high-value problem, not a general migration. Pick one computation where the data is too sensitive to share in the clear, and where the answer is worth the performance cost.

  1. Define the computation. Write down exactly what function you need, and whether it needs exact integers (BFV, BGV), approximate reals (CKKS) or boolean logic (TFHE).
  2. Pick a library. The main open-source options are Microsoft SEAL, OpenFHE, HElib, HEAAN and TFHE. Check which schemes each one supports and whether it is still maintained.
  3. Prototype on small data. Measure the time and ciphertext size for your real workload, not a toy example. Most teams are surprised by both.
  4. Review the security model. Confirm the parameter set, the threat model (passive vs active), and how decryption failures are handled.
  5. Plan key management. Decide who holds the decryption key, how it is backed up, and whether it should be split across parties.

If the prototype is too slow, consider the alternatives first: regular encryption with a trusted enclave, or multi-party computation. FHE is the right tool when the server must not see the data at all, and no trusted party exists to hold it instead. You can read NIST's overview in our sources to see how the security models compare — start with the NIST privacy-enhancing cryptography page on FHE.

The bottom line

Homomorphic encryption lets a server compute on data it cannot read. Fully homomorphic encryption supports any computation, built on lattice-based schemes such as BFV, BGV, CKKS and TFHE, with bootstrapping keeping the noise in check.

It is not a replacement for regular encryption, and it is still slow and complex. But for the narrow, high-value cases — medical research, financial analysis, private cloud computing — it is the only technique that lets you outsource computation without trusting the server with your data. Learn more about the schemes and security models from the Lamarr Labs field guide to FHE.

Frequently asked questions

What is homomorphic encryption in simple terms?

It is encryption that lets someone do maths on encrypted data. You encrypt your numbers, send them to a server, the server adds or multiplies the encrypted values, and the answer it sends back decrypts to the correct result. The server never sees your numbers.

What is the difference between partially and fully homomorphic encryption?

Partially homomorphic encryption supports only one operation, such as addition or multiplication. Somewhat homomorphic encryption supports both, but only for a limited number of operations. Fully homomorphic encryption supports any computation, of any depth, by refreshing the ciphertext when noise builds up.

Is homomorphic encryption quantum-safe?

The mainstream schemes, BFV, BGV, CKKS and TFHE, are lattice-based and rest on the Learning With Errors problem, which is the same family of hardness behind NIST's post-quantum standards. Shor's algorithm does not break them, though parameter sizes still matter.

What is bootstrapping in homomorphic encryption?

Bootstrapping is a technique that refreshes a noisy ciphertext by homomorphically decrypting it inside the encryption, producing a fresh ciphertext with low noise. It is what makes fully homomorphic encryption possible for computations of unlimited depth.

Where is homomorphic encryption used today?

The main uses are privacy-preserving cloud computing, medical research on encrypted patient data, financial analysis across institutions, and private machine-learning inference. Most deployments are pilots or specialised services, not everyday consumer products.

Is homomorphic encryption slow?

Yes, compared with computing on plaintext. FHE operations can be thousands of times slower, and ciphertexts are much larger than the data they hold. Performance has improved greatly since 2009, but speed and size are still the main reasons it is not used everywhere.

Does homomorphic encryption replace regular encryption?

No. Regular encryption is faster and simpler for storing and sending data. Homomorphic encryption is for the specific case where someone else needs to compute on your data without seeing it. Use regular encryption everywhere else.

What libraries implement homomorphic encryption?

The main open-source libraries named in NIST's 2024 overview are Microsoft SEAL, HElib, OpenFHE, HEAAN, FHEW, TFHE and Lattigo. OpenFHE, launched in July 2022, is the current library in that lineage. They implement the BFV, BGV, CKKS and TFHE schemes.

Sources

  1. NIST CSRC — Privacy-Enhancing Cryptography: Fully Homomorphic Encryption
  2. NIST — Overview of Fully Homomorphic Encryption: functionality and security models (Micciancio, WPEC 2024)
  3. Lamarr Labs Field Guide — Fully Homomorphic Encryption (FHE)
  4. INRIA — An introduction to Fully Homomorphic Encryption (FHE)
  5. OpenFHE — Open-Source Fully Homomorphic Encryption Library (IACR ePrint 2022/915)
Written & fact-checked byCysoro Security Team

The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against NIST's privacy-enhancing cryptography pages and its WPEC 2024 overview of fully homomorphic encryption.

How we write and fact-check →

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free