Socket
Socket
Sign inDemoInstall

pgp-word-list-converter

Package Overview
Dependencies
0
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    pgp-word-list-converter

Convert hex strings to PGP word lists and vice-versa


Version published
Weekly downloads
3
decreased by-85.71%
Maintainers
0
Install size
13.0 kB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 23 Aug 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc