Advanced Topic 37 of 51 Security & Cryptography
Homomorphic Encryption
Computing on encrypted data without decrypting.
How it works
Homomorphic encryption allows computation directly on encrypted data, producing an encrypted result that, when decrypted, equals the result of the same operations on the plaintext. Partially homomorphic schemes support one operation, such as addition in Paillier or multiplication in textbook RSA; somewhat and leveled schemes allow limited depth; fully homomorphic encryption, first constructed by Craig Gentry, supports arbitrary computation, with schemes such as BGV, BFV and CKKS for approximate arithmetic.
Step-by-step walkthrough
- The owner encrypts the data.
- The cloud receives only ciphertext.
- It adds or multiplies encrypted values without seeing them.
- The encrypted result returns.
- Only the owner can decrypt it, but computation is slow.
Where it is used
Private analytics in the cloud, encrypted machine-learning inference, secure voting tallies and privacy-preserving medical data processing use it, with libraries such as Microsoft SEAL and OpenFHE.
Common pitfall
It is still orders of magnitude slower than plaintext computation and has large ciphertexts. Noise grows with each operation, requiring bootstrapping or careful circuit design. Only certain computations are practical. It protects data from the compute host but not from leaking through results. Consider trusted execution or secure multi-party computation as alternatives.
Where it fits in the course
Homomorphic Encryption is topic 37 of 51 in Security & Cryptography, rated Advanced. It follows Zero-Knowledge Proofs. The next topic is Post-Quantum Cryptography.
Practice and explore
- Open the interactive lesson, with a mini quiz.
- Take the Security & Cryptography quiz.
How to study this topic
- Read the explanation above and restate the definition in your own words.
- Open the interactive lesson and answer its mini quiz.
- Read the common pitfall, then write a short example that avoids it.
- Check your understanding in the Security & Cryptography quiz, and revisit the topic if you miss a question.
Frequently asked questions
What is Homomorphic Encryption?
Where do people use Homomorphic Encryption?
What is the most common mistake with Homomorphic Encryption?
What should I learn before this topic?
How can I practice it?
Is Homomorphic Encryption hard to learn?
How long does it take to learn Homomorphic Encryption?
Which topics are related to Homomorphic Encryption?
What should I study after Homomorphic Encryption?
Related topics
- Zero-Knowledge Proofs (Security & Cryptography)
- Post-Quantum Cryptography (Security & Cryptography)
- Elliptic Curve Cryptography (Security & Cryptography)
- Side-Channel Attacks (Security & Cryptography)