Here you can find the source of divmod256(byte[] number58, int startAt)
private static byte divmod256(byte[] number58, int startAt)
//package com.java2s; //License from project: Open Source License public class Main { private static byte divmod256(byte[] number58, int startAt) { int remainder = 0; for (int i = startAt; i < number58.length; i++) { int digit58 = (int) number58[i] & 0xFF; int temp = remainder * 58 + digit58; number58[i] = (byte) (temp / 256); remainder = temp % 256;/*ww w. j ava 2 s . c om*/ } return (byte) remainder; } }