pgp-word-list-converter
Convert hex strings to PGP word lists and vice-versa
Last updated 4 years ago by kronolynx .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install pgp-word-list-converter 
SYNC missed versions from official npm registry.

Convert hex strings to PGP word lists and vice-versa.

See PGP word list on WikiPedia for more information.

Installation

npm install pgp-word-list-converter

Usage

var converter = require('pgpWordConvert')();
// convert array of words
console.log(converter.toHex(['stairway', 'souvenir', 'flytrap', 'recipe']));
//convert string of words, the words can be separated with comas
console.log(converter.toHex('stairway souvenir flytrap recipe'));
// convert array of hexadecimals
console.log(converter.toWords(['D1', 'D4', '64', 'C0']));
// convert string of hexadecimals
// string examples: 'd1d464c0' , 'd1,d4,64,c0', 'd1 d4 64 c0'
console.log(converter.toWords('d1d4 64c0'));

As an optional parameter we can pass a custom PGP word list

  var converter = require('pgpWordConvert')(customList);

License

MIT license. See LICENSE

Current Tags

  • 1.0.0                                ...           latest (4 years ago)

1 Versions

  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (1)
Dependents (1)

Copyright 2014 - 2017 © taobao.org |