CRC32

public static void main(String[] args) {
        String s = "01279c1208a8eca3d4a47a123119b04f1dcc592c818aace2715b2c418b38822a";
        byte[] bytes = s.getBytes();
        Checksum crc32 = new CRC32();
        crc32.update(bytes, 0, bytes.length);
        long checkSum = crc32.getValue();
        System.out.println(checkSum);
    }

你可能感兴趣的:(java,开发语言)