Skip to main content
Challenges Paillier homomorphic encryption
Cryptography Expert Homomorphic encryption Solves: 7

Paillier homomorphic encryption

Author: CyberSamSU
Points
150

Paillier — an additively homomorphic encryption system. Its magical property: if we multiply ciphertexts mod n2, the plaintexts are added: E(m1) · E(m2) mod n2 = E(m1 + m2 mod n). This allows computing while preserving confidentiality — for example, tallying votes without opening them.

Key generation (g = n+1 scheme): public key (n, g), private lambda = (p-1)(q-1), mu = lambda-1 mod n. Decryption: m = L(clambda mod n2) · mu mod n, where L(u) = (u-1)/n.

The attached paillier.txt file contains n, g, lambda, mu and 5 ciphertexts c0..c4. Without decrypting them individually, use the homomorphic property to find the total sum: multiply all ciphertexts mod n2, then decrypt the result once. If you convert the resulting number to bytes, the flag will be revealed.

Attached files
paillier.txt Log in to download
SHA-256 checksums
paillier.txt: 09c44dc6d902e01a0feb92a81599f6461630a52aca6e56c8b974a528e2983594
Hints 3
Opening a hint reduces the points you get for solving this challenge.
Hint 1 −15 pts Log in
Hint 2 −30 pts Log in
Hint 3 −45 pts Log in
To submit a flag, log in.

First solvers

1. W.o.X 09.09.2026
2. Абдул 15.09.2026
3. Лазиз 01.10.2026
4. testrejim 09.10.2026
5. 11111tttt 09.10.2026
6. Mirjaxon Qaxxarov 26.10.2026
7. Odam 04.11.2026