跳到主要内容
uencoder

Use Shamir's Secret Sharing 到拆分关键

Shamir's Secret Sharing splits secret 为 n shares, 任何 k 的哪个能够 reconstruct 它. Useful 为键 escrow, distributed custody, 和 eliminating 单个 points 的失败.

  1. 1

    Shamir's Secret Sharing (SSS) 是 based 开多项式 interpolation 遍历 finite 字段. 到 share secret S 具有阈值 k 之中 n parties: 生成 random 多项式 f 的 degree k-1 where f(0) = S. 每个 party gets f(i) 为 i = 1..n. 任何 k shares reconstruct f 和因此 S; k-1 shares reveal 无.

  2. 2
    随机字节生成器 →

    生成 the random coefficients for the polynomial. The constant term is the secret; all other coefficients are random. Use a CSPRNG — the security depends on the randomness of the coefficients.

  3. 3
    模幂运算计算器 →

    Evaluate 多项式在 distinct points 到创建 shares. 每个 share 是 (x, f(x)) where x 是 point 索引. Use Lagrange interpolation 到 reconstruct secret 从 k shares.

  4. 4

    Use cases: splitting 加密键 之中多个 trustees (e.g., 3 的 5 需要到 recover), distributed 备份的 主键, social 恢复为 cryptocurrency wallets. 阈值 k determines trust 模型 — higher k means 更多 parties 必须 cooperate, 下 k means faster 恢复但 更少安全.

常见问题

什么是 阈值 k?
k 是最小值数字的 shares needed 到 reconstruct secret. 具有 k=3 和 n=5, 任何 3 的 5 shares 能够 recover secret, 但 2 shares reveal 无. Choose k based 开你的 trust 模型: 如何许多 parties 必须 cooperate, 和如何许多 failures 能够你 tolerate.
SSS information-theoretically 安全吗?
是. 具有 fewer than k shares, 每个可能 secret 是 equally 可能 — 那里是 否信息 leakage 不管的 computational power. 此是 stronger than computational 安全 (e.g., RSA), 哪个可以是 broken 通过 quantum computer.

相关工具