This repository contains a Bash script for splitting and recombining a private key using Shamir's Secret Sharing scheme. This can be useful for securely storing and sharing sensitive information such as private keys.
- ssss: Install using your package manager, e.g.,
sudo apt-get install ssss.
- Clone this repository to your local machine.
- Navigate to the repository directory in your terminal.
- Run the script using the command
bash script.sh. - Follow the prompts to either split or combine a private key.
- Enter the private key (input will be hidden for security).
- Choose whether to verify the key. Type 'full' to display the full key, 'part' to display the first and last part, or anything else to skip.
- Enter the number of parts to split the key into.
- Enter the number of parts required to reassemble the key.
- Enter the security level (e.g., 128, 256, 512; or leave blank for automatic).
- The key parts will be saved in files named
key_parts-1tokey_parts-n.
- Enter the number of parts required to reassemble the key.
- Place the key parts files in the current directory.
- Press Enter to combine the key parts and reassemble the private key.
- This script is a basic implementation and may not be suitable for production use without further security enhancements.
- Ensure to securely delete the key parts files and the reassembled private key file after use.
- It's recommended to run this script in a secure environment to prevent potential eavesdropping or other security threats.
This project is licensed under the MIT License - see the LICENSE file for details.