base58.js
//Utility function to ocnvert base 10 integer to base 58 string
Utility function to ocnvert base 10 integer to base 58 string
Utility function to ocnvert base 10 integer to base 58 string
function encode(num) {
    var encoded = '';
    while (num) {
        var remainder = num % base;
        num = Math.floor(num / base);
        encoded = alphabet[remainder].toString() + encoded;
    }
    return encoded;
}
function encode ( num ) { var encoded = '' ; while ( num ) { var remainder = num % base ; num = Math . floor ( num / base ) ; encoded = alphabet [ remainder ] . toString ( ) + encoded ; } return encoded ; }
Utility function to ocnvert base 10 integer to base 58 string
Utility function to ocnvert base 10 integer to base 58 string