ssb-horcrux
split your private key like voldemort!
Last updated 3 years ago by mixmix .
GPL-3.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install ssb-horcrux 
SYNC missed versions from official npm registry.

patch-horcrux

[WIP] - will be a depject patchbay module

Do you crave immortality? Secure your private key by splitting it like Voldemort did (no human sacrifce required).

Split your key into some number of parts, give those to trusted friends, and if your computer ever dies, you can re-create your private key.

example script

Splitting a key into 5 parts, but only needing 3 to recover your key.

var secrets = require('secrets.js')

// you'd actually use your private key
var key = '@ye+QM09iPcDJD6YvQYjoQc7sLF/IFhmNbEqgdzQo3lQ=.ed25519' 

var hexKey =  secrets.str2hex(key)
var shares = secrets.share( hexKey, 5, 3 )

console.log( shares )

var combinedShares = secrets.combine( shares.slice(0,3) )
var myKey          = secrets.hex2str( combinedShares )

console.log( myKey )

https://www.npmjs.com/package/secrets.js

Current Tags

  • 1.0.0                                ...           latest (3 years ago)

6 Versions

  • 1.0.0                                ...           3 years ago
  • 0.1.3                                ...           4 years ago
  • 0.1.2                                ...           4 years ago
  • 0.1.1                                ...           4 years ago
  • 0.1.0                                ...           4 years ago
  • 0.0.1                                ...           4 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2016 © taobao.org |