Split a cryptographic key into multiple XOR components for secure distribution, or combine components back into the original key. This is the standard method for key ceremonies where no single person should know the full key.
Inputs
Mode: Split a key into components or combine components back.
Key: The full key in hexadecimal (for split mode).
Number of Components: How many components to split into (2 or 3).
Components: The key components in hexadecimal (for combine mode).
Tips
Each component custodian should verify the combined KCV matches the expected value.
Components should be distributed to different custodians and stored separately.
This uses simple XOR splitting — for threshold schemes, use Shamir Secret Sharing.