get check sum for byte array using Adler32 - Java java.lang

Java examples for java.lang:byte Array

Description

get check sum for byte array using Adler32

Demo Code


//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();
    }
}

Related Tutorials