node package manager
Don’t reinvent the wheel. Reuse code within your team. Create a free org »

hex2words

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