The CRC cyclic redundancy check algorithm is a hash function that can generate a fixed number of bits based on data to verify the errors that occur after data transfer/save, or to verify the integrity of the data, such as compressed files.
The resulting hash value is computed and appended to the data before it is transmitted or stored.The general cyclic redundancy check value is a 32-bit binary number, which is a 8-bit 16 binary string. General Redundancy Check is a value CRC-32
CRC-32 implementation: Using the CRC32 class public static void main (string[] args) throws exception{ CRC32 CRC32 = new CRC32 ();crc32.update ("China". GetBytes ("GBK")); long result = Crc32.getvalue ();System. out. println (Long. tohexstring(Result));}
Similarly, using the CRC to process the input-output stream is, use Checkedinputstream and Checkedoutputstream. Working principle with Digestinputstream and digestoutputstream in MD5
From for notes (Wiz)
CRC cyclic redundancy Check algorithm