Here you can find the source of crc32(String input)
public static String crc32(String input)
//package com.java2s; //License from project: Open Source License public class Main { public static String crc32(String input) { long CRC = 0xffffffff; input = input.toLowerCase();/*from w ww . ja v a 2 s .c o m*/ char[] data = input.toCharArray(); for (int j = 0; j < data.length; j++) { int c = data[j]; CRC ^= c << 24; for (int i = 0; i < 8; i++) { if ((CRC & 0x80000000L) != 0) { CRC = (CRC << 1) ^ 0x04C11DB7; } else { CRC <<= 1; } } } CRC &= 0xffffffffL; String r = Long.toString(CRC, 16); while (r.length() < 8) r = "0".concat(r); return r; } }