Here you can find the source of getCRC32(String str)
public static String getCRC32(String str)
//package com.java2s; //License from project: Apache License public class Main { public static String getCRC32(String str) { java.util.zip.CRC32 crc32 = new java.util.zip.CRC32(); crc32.update(str.getBytes());// w w w. j a va 2 s. c o m String retcrc32 = Long.toHexString(crc32.getValue()); return retcrc32; } }