Java examples for java.lang:byte Array
get check sum for byte array using Adler32
//package com.java2s; import java.util.zip.Adler32; public class Main { public static long checksum(byte[] b) { Adler32 a32 = new Adler32(); a32.update(b);//from w w w. j a v a 2 s .com return a32.getValue(); } }