Skip to content

Shamir の秘密分散

秘密を N 個のシェアに分割し、任意の K 個で復元できますが、K 個未満では何も明らかになりません。GF(256) 上の Shamir しきい値方式に基づきます。

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

Web Crypto によりブラウザ内で 100% 実行されます — 秘密とシェアが端末の外に出ることはありません。

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.