Static website implementing Shamir Secret Sharing generation and recovery https://seal.lovie.dev/
  • JavaScript 97.1%
  • HTML 2.9%
Find a file
2026-10-17 00:09:00 +07:00
web feat: implement shamir split and recover 2026-10-17 00:09:00 +07:00
README.md feat: share serialization and deserialization in js 2026-10-16 23:39:05 +07:00

Seal

Seal is an open-source static website that implements Shamir Secret Sharing generation and recovery in a simple interface.

Shares

There is no one standard way to represent Shamir shares unfortunately, and a custom binary format (although saving of share length) would not be a great idea, as the documentation or the tool would be required for recovery.

The shares are represented by an ASCII string as follows:

seal1-s[set]-i[index]-t[threshold]-n[count]-d[data]-e[encrypted]-c[checksum]
  • seal1: share version (all tools are fully backwards compatible)
  • s[set]: a random id of the set, 8 bytes
  • i[index]: index of the share in the set, 1 byte
  • t[threshold]: minimum amount of shared needed for decryption, 1 byte
  • n[count]: total shares in the set, 1 byte
  • d[data]: share data, 32 bytes
  • e[encrypted]: encrypted payload, optional
  • c[checksum]: checksum of the string without the -c[checksum, optional

All data, except [mode], is in uppercase hexadecimal.

Example share

TODO