hex-to-32
v2.0.0
Published
Convert a hex string to base32 and back
Downloads
225
Readme
hex-to-32
Convert a hex string to base32 and back using rfc4648
.
npm install --save hex-to-32
var value = 0xDEADA5;
var hex = value.toString(16);
var encoded = hexTo32.encode(hex);
assert.equal(encoded, "32w2k");
var decoded = hexTo32.decode(encoded);
assert.equal(decoded, hex);