Skip to content

Compartilhamento Secreto de Shamir

Divida um segredo em N partes onde quaisquer K partes o reconstruem — mas menos de K não revelam nada. Baseado no esquema de limiar de Shamir sobre GF(256).

Privacy & Security
cosmodev ~/tools/secret-sharing-

Roda 100% no seu navegador via Web Crypto — o segredo e suas partes nunca saem do seu dispositivo.

Send to AI
Write a Python implementation of Shamir's Secret Sharing over GF(256) that interoperates with these share strings: each share is the two-digit hex x-coordinate, a dash, then one hex byte per secret byte (e.g. "01-a3b2c1"). It must split a secret into 5 shares with threshold 3, and reconstruct from any 3 of them. Use the AES reduction polynomial 0x11B and rejection-free crypto-random coefficients.