code: public static String encode(long number) {
  		char[] output = new char[32];
  		int p = 31;
  		long n = number;
  		while (n > 61) {
  			output[p--] = encodingChars[(int) (n % 62L)];
  			n = n / 62;
  		}
  		output[p] = encodingChars[(int) (n % 62L)];
  		return new String(output, p, 32 - p);
  	}
docs: Convert a number (base10) to base62 encoded string
  
  @param number the number to convert
  @return the base 62 encoded string