Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

hex2words

1.1.6 • Public • Published

hex2words Build Status

Given a string of hex values, a PGP thumbprint or SHA hash for example, return an array of PGP words.

var words = parse('E582')

Will return:

  [
    'topmost',
    'Istanbul'
  ]

api

words = parse(input)

Parses either a hex input string, or Buffer, and returns an array of PGP words.

input

A hex formatted string or a Buffer.

// these are identical
var words = parse('E582')
var words = parse(new Buffer('E582', 'hex'))
var words = parse(new Buffer([ 229, 130 ]))

license

VOL

Keywords

none

install

npm i hex2words

Downloadsweekly downloads

40

version

1.1.6

license

VOL

repository

githubgithub

last publish

collaborators

  • avatar