Adler32

Implementation of Adler-32 digester.

Adler-32 is a checksum algorithm which was developed by Mark Adler and published in 1995. It is used to detect accidental changes to data. Adler-32 is created by calculating two 16-bit checksums for a given stream of bytes and concatenating them.

static
@digester
class Adler32 {}

Members

Static functions

hash
ubyte[] hash(ubyte[] data)

Computes the Adler-32 hash digest of the given data.

Examples

import tern.digest.adler32;

ubyte[] data = [1, 2, 3, 4, 5];
auto hashValue = Adler32.hash(data);

Meta