Adler : Java Glossary


Adler digest
A 32-bit checksum/digest that is almost as reliable in detecting changes as a CRC-32, but is much quicker to compute: Consider using an Adlerian digest for your hashCode when you can reduce the key part of your object to a long string of bytes.

Beware Adler32.update ( int )! It accepts only an unsigned 8-bit byte packed in the low order bits of an int. You can’t feed update() a 32-bit int.

Adler-32 has a weakness for very short messages. For very short packets, Adler-32 is guaranteed to give poor coverage of the available bits.

If you need a shorter value, take the modulus by a prime. Don’t just sample the low order bits.

Learning More

Oracle’s Javadoc on Adler32 class : available:

This page is posted
on the web at:

Optional Replicator mirror
on local hard disk J:

Please the feedback from other visitors, or your own feedback about the site.
Contact Roedy. Please feel free to link to this page without explicit permission.

Your face IP:[]
You are visitor number