Skip to content
source code for website
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Secret Coin

Store your secrets securely.


Storing sensitive data can be problematic. If it gets accidentally lost or destroyed, you lose your data. If stolen, your data is compromised. You can make multiple copies and store them in isolation, but this increases the risk of being stolen or misplaced. You can encrypt them, but then you face the same problem storing the encryption key.

Secret Coin uses Shamir's Secret Sharing algorithm to divide your secret into multiple (N) shares, and then you can restore the secret using a specified number of the shares (M of N). None of the shares contain identifiable information about the secret. If any share, or up to (M-1) shares are compromised, the secret is still completely unknown.

This type of security model is critical for data such as Bitcoin mnemonic phrases, private keys, or anything giving one "keys to the kingdom."

You will need to access the tool via an HTTP URL on a browser, and not direct file:// access. Example: http://localhost:8000. Detailed instructions follow.


You will need:

  • The .zip archive of this repository (get from GitHub Download button)
  • python scripting language. This comes with OSX. PC users may need to install python, or use another web server implementation, out of scope for these docs.
  • HTML5 compatible browser such as Google Chrome


These commands are ran from the terminal.

unzip the archive


change to directory

cd secretcoin-master

start Simple HTTP Server

python -m SimpleHTTPServer 8000

Visit the website in your browser


Paste or type in a secret, such as mnemonic phrase or private key.

There is a text area for this.

Chooose the total number of shares, and required number to restore the secret.

For example, you might want to split your secret into three separate shares, and require any two of three shares to restore the secret.

Click Generate

This will generate the shares.

Download the individual shares

This will create individual files, one for each share.


It is absolutely crucial that you test the restore. Choose the required number of shares and be sure the secret is regenerated correctly.

Save the shares separately.

You may choose to place the shares on separate USB thumb drives, then store these drives in three separate, safe locations. You could also print the shares and store the paper copies.

Built With


Use the GitHub repository to create a pull request.


  • Monte Ohrt - Initial work - mohrt


This project is licensed under the MIT License - see the file for details.

You can’t perform that action at this time.