Here you can find the source of crc32(byte[] array)
public static final int crc32(byte[] array)
//package com.java2s; //License from project: Apache License import java.util.zip.CRC32; public class Main { public static final int crc32(byte[] array) { if (array != null) { return crc32(array, 0, array.length); }/*from www. j ava2s . co m*/ return 0; } public static final int crc32(byte[] array, int offset, int length) { CRC32 crc32 = new CRC32(); crc32.update(array, offset, length); return (int) (crc32.getValue() & 0x7FFFFFFF); } }