|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.mindbright.util.CRC32
public final class CRC32
static routine for calculating CRC32 (Cyclic Redundancy Check) checksums on data. Note that CRC32 is not cryptographically secure. A better alternative is SHA1 or MD5.
MD5,
SHA1| Field Summary | |
|---|---|
static long[] |
crc32_tab
Table used to calculate CR32 checksums |
| Constructor Summary | |
|---|---|
CRC32()
|
|
| Method Summary | |
|---|---|
static long |
getValue(byte[] buf,
int off,
int len)
Calculate the CR32 value for a given blob of data |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final long[] crc32_tab
| Constructor Detail |
|---|
public CRC32()
| Method Detail |
|---|
public static long getValue(byte[] buf,
int off,
int len)
buf - array holding data to calculate checksum foroff - offset of data in buflen - length of adata
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||