Here you can find the source of crc32(final byte[] bytes)
public static long crc32(final byte[] bytes)
//package com.java2s; //License from project: Apache License import java.util.zip.CRC32; import java.util.zip.Checksum; public class Main { public static long crc32(final byte[] bytes) { Checksum checksum = new CRC32(); checksum.update(bytes, 0, bytes.length); long checksumValue = checksum.getValue(); return checksumValue; }// ww w.j a va2s . co m }