Given a string of hex values, a PGP thumbprint or SHA hash for example, return an array of PGP words.
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.gitignore
.travis.yml
README.md
index.js
license
package.json

README.md

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