Skip to main content
Challenges Shamir's secret sharing
Cryptography Hard Secret sharing Solves: 6

Shamir's secret sharing

Author: CyberSamSU
Points
80

Shamir's Secret Sharing scheme divides a secret into n shares, of which any t are enough to recover the secret, while t-1 provide no information. The scheme is based on a polynomial of degree t-1: the constant term (the value at x=0) — is the secret. The shares — are points of the polynomial (x, f(x) mod p).

In this challenge, a 3-out-of-5 scheme is used (t=3, n=5). The attached ulushlar.txt file contains a prime number p and 5 (x, y) shares. Take any 3 shares and calculate f(0) with Lagrange interpolation mod p — this is the secret. If you convert the number to bytes, the flag will appear.

Lagrange (for x=0): f(0) = Σ y_j · Π_{m≠j} (-x_m)/(x_j - x_m) mod p. Division — via modular inverse.

Attached files
ulushlar.txt Log in to download
SHA-256 checksums
ulushlar.txt: 56351c4441487ff816c8e38b7c237cd8257cd498a2df749837117d045a3712d7
Hints 3
Opening a hint reduces the points you get for solving this challenge.
Hint 1 −8 pts Log in
Hint 2 −16 pts Log in
Hint 3 −24 pts Log in
To submit a flag, log in.

First solvers

1. W.o.X 17.09.2026
2. Лазиз 04.10.2026
3. testrejim 09.10.2026
4. Mirjaxon Qaxxarov 27.10.2026
5. Odam 05.11.2026
6. arcanum 11.11.2026