Generate & Split Secret: Call generateAndSplit(n, k) to create and split a secret.
Distribute Shares: Send each share securely to participants.
Reconstruct Secret: Collect k shares and call combineShares() when needed.
Encrypt Messages: Use encryptMessage(secret, plainText) for secure communication.
Decrypt Messages: Use decryptMessage(secret, ciphertext, iv) to retrieve the original data.
Multi-party vault unlocking.
Joint authorization for sensitive operations.
Distributed trust management.
Never persist reconstructed secrets; keep them in memory only.
Use secure channels (e.g., HTTPS) for share transmission.
Rotate secrets periodically to maintain strong security.