Skip to content

การแบ่งความลับแบบ Shamir

แบ่งความลับออกเป็น N ส่วน โดย K ส่วนใดก็ได้สามารถสร้างความลับกลับคืนมา แต่หากมีน้อยกว่า K ส่วนจะไม่เปิดเผยข้อมูลใด ๆ อิงตามระบบแบ่งตามเกณฑ์ (threshold scheme) ของ Shamir เหนือ GF(256)

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

ทำงาน 100% ในเบราว์เซอร์ของคุณผ่าน Web Crypto - ความลับและชิ้นส่วนของมันไม่ออกจากอุปกรณ์ของคุณ

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.