private static string GetEncodedChunk(byte[] hash, int offset) { long chunk = ByteUtil.ByteArray5ToLong(hash, offset) % 100000; return(string.Format("{0:d5}", chunk)); }