Recently, while hacking around with some Python code I came up with a Gist for base58 encoding and decoding. Now, just for fun, I thought it would be a good idea / exercise to port this over to JavaScript. This gave rise to encdec - a small base encoding / decoding library.

By default if uses base58 encoding, but it does let you pass it your own base alphabet allowing you to do base16, base32 or base-whatever-you-like encoding.

Please have a play with it and let me know what you think :)