A node module for baseXX encoding and decoding e.g. base58, base16, base32, base64
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
node_modules
qunit-tests
test
.gitignore
.gitmodules
LICENCE
README.markdown
TODO
nodeunit
package.json

README.markdown

encdec

encdec is a small JavaScript library to help you encode numbers and decode strings in a base16, base32, base58, base64...in fact, any base you like :)

Usage

var base58 = encdec(); // defaults to base58
console.log(base58.encode(1000000));
console.log(base58.decode('JRH5H'));

// base32 encoding
var base32 = encdec('ABCDEFGHIJKLMNOPQRSTUVWXYZ234567');
console.log(base32.encode(1000000));
console.log(base32.decode('JRH5H'));