Code example for BigInteger

Methods: mod

        MessageDigest md = MessageDigest.getInstance("SHA-256");
        byte b[] = md.digest(token.getBytes("UTF-8"));
        BigInteger bi = new BigInteger(1,b);
        BigInteger mod = new BigInteger("65536");
        BigInteger ret = bi.mod(mod);
        return ret;
     * Returns the set of possible hashes if any encoded within the following transaction ID. 
     * If the list is empty, it means something is wrong and no hash could be found. 
     * If there are multiple entries, it means that there was a change block that somehow 
     * made the checksum still work (should be 1 in every 65536 when the change is smaller than 65536).