1.0.0 • Published 5 years ago

horcrux-js v1.0.0

Weekly downloads
2
License
MIT
Repository
-
Last release
5 years ago

Horcrux-js

The project is a clone of horcrux by jesseduffield written with golang. As said in the readme of horcrux you can split your file into encrypted horcruxes so that you don't need to remember a passcode.

Usage

const Horcrux = require('horcrux-js');

const horcrux = new Horcrux({
  filename: './example/diary.txt',
  output: './example',
  parts: 5,
  threshold: 3
});

horcrux.split((err, horcruxes) => {
  if (err) throw err;
  console.log(horcruxes.join(' / '))
});

horcrux.bind('./example', './example', (err, secret) => {
  if (err) throw err;
  console.log(secret);
});
1.0.0

5 years ago