0Pricing
Cryptology Academy · Lesson

What Is Homomorphic Encryption?

Explain partially, somewhat, and fully homomorphic encryption.

What Is Homomorphic Encryption? is a free Cryptology Academy lesson on CoddyKit — lesson 1 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Cryptology Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

The Core Idea

Homomorphic Encryption (HE) allows computations to be performed directly on encrypted data, producing an encrypted result that, when decrypted, equals the result of performing the same operations on the plaintext. "Compute on ciphertext without decrypting."

Analogy: Locked Box

Imagine placing numbers inside a locked box with special gloves built into the sides. You can manipulate the numbers through the gloves (add, multiply) without ever opening the box. Only the key owner can see the result when they unlock the box.

Partial HE (PHE)

Partially Homomorphic Encryption supports one operation type unboundedly: RSA (textbook) is multiplicatively homomorphic: Enc(m1)*Enc(m2) = Enc(m1*m2). Paillier is additively homomorphic: Enc(m1)*Enc(m2) = Enc(m1+m2). Used in e-voting, private information retrieval.

Somewhat HE (SHE)

Somewhat Homomorphic Encryption supports both addition and multiplication, but only for a limited number of multiplications (circuit depth). Noise grows with each multiplication; after a threshold, decryption fails. First construction by Gentry (2009).

Fully HE (FHE)

Fully Homomorphic Encryption supports arbitrary computations (any Boolean/arithmetic circuit) on encrypted data. Gentry (2009) showed FHE is possible via "bootstrapping" — homomorphically evaluating the decryption circuit to refresh the ciphertext and reset noise.

Noise in Lattice-Based HE

Most HE schemes are lattice-based (BGV, BFV, CKKS). Encryption adds noise to ciphertext. Addition: noise grows additively. Multiplication: noise grows multiplicatively. Bootstrapping: homomorphically decrypt the ciphertext, resetting noise to initial level. Bootstrapping is expensive.

Performance Reality

FHE is still 10^6x slower than plaintext computation. Encrypting 1 32-bit integer requires kilobytes of ciphertext. Bootstrapping takes seconds per gate. Practical FHE targets specific workloads: machine learning inference, database queries, genome analysis.

Security Foundation

Most HE schemes are based on the Learning With Errors (LWE) or Ring-LWE (RLWE) hard problem, which is believed to be quantum-resistant. Breaking HE requires solving RLWE — no known quantum algorithm provides significant speedup against it.

Libraries

SEAL (Microsoft, supports BFV/CKKS), HEAAN (Seoul National University, CKKS), OpenFHE (open-source, BGV/BFV/CKKS/FHEW/TFHE), HElib (IBM, BGV). All are research-grade; production deployments are rare and domain-specific.

Use Cases Today

Medical genomics: query a gene database without revealing your genome. Encrypted ML inference: cloud runs a neural network on your data without seeing it. Private analytics: aggregate statistics over encrypted user data. Financial risk computation on confidential portfolios.

HE vs MPC

HE: single party computes on data encrypted by another party. MPC: multiple parties jointly compute without revealing their inputs to each other. Hybrid: use HE for offline preprocessing, MPC for interactive protocols. Trade-offs: HE = high latency; MPC = communication overhead.

Quick Check

What is the key limitation of Somewhat Homomorphic Encryption (SHE)?

Recap

Homomorphic Encryption enables computation on ciphertext. PHE supports one operation; SHE supports limited depth; FHE supports arbitrary circuits via bootstrapping. Based on LWE/RLWE hard problems. Next: the LWE mathematical foundation.

Frequently asked questions

Is the “What Is Homomorphic Encryption?” lesson free?

Yes — the full text of “What Is Homomorphic Encryption?” is free to read here on the web, and the Cryptology Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Cryptology Academy course, upgrade to CoddyKit PRO.

What will I learn in “What Is Homomorphic Encryption?”?

Explain partially, somewhat, and fully homomorphic encryption. You practise Cryptology Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start Cryptology Academy?

No prior experience is required. Cryptology Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 1 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “What Is Homomorphic Encryption?” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this Cryptology Academy lesson?

Yes. Every Cryptology Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. What Is Homomorphic Encryption?
  2. Learning With Errors (LWE) Foundation
  3. BGV & BFV Schemes for Integer Operations
  4. CKKS for Approximate Arithmetic & ML
← Back to Cryptology Academy