Convert buffers to and from the "proquint" pronouncable representation.
I wrote this on the plane not realizing that @deoxxa already had written the npm module. proquint except that his implementation is not compliant to the spec. I have made issued a pull request But as of this writing it is still unmerged and uncommented. tisk tisk tistk.
var crypto = require('crypto')
var fs = require('fs')
var pubkey = fs.readFileSync(process.env.HOME + '/.ssh/id_rsa.pub')
var hash = crypto.createHash('sha256').update(pubkey).digest()
var proquint = require('proquint')
console.log(proquint.encode(hash))
running this script will generate 8 hyphenated words, that are relatively easy to pronounce. Memorize this. Get your friends and famility to address you by this name.
I recommend having your name legally changed to your proquint pronouncable hash. This strongly depends on the the country you are geolocated within, and is out of scope of this documentation.
Proquints are a binary encoding intended for humans, so there are a few ways of encoding proquints that suit different ways that humans may want to use binary.
yabiv-huhaf fubar-kasom
.
lower case, seperated by a dash then a space.
(default)
YabivHuhaf-FubarKasom
.
camel case, with a dash every second proquint.
Encoding without whitespace is easier to copy/paste
because you can usually select it with a double click.
YabivHuhafFubarKasom
.
camel case, with no separator.
yabiv-huhaf_fubar-kasom
.
lower case, seperated by a dash then an underscore.
MIT