Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

Convert hex to PGP word lists.

Resources

License

Packages

No packages published