public final String getCRC32(String str)
    {
        String string = new String(str);
        String crc2 = null;
        long value = 0;
        try
        {
            byte buffer2[] = string.getBytes();
            ByteArrayInputStream bais = new ByteArrayInputStream(buffer2);
            CheckedInputStream cis = new CheckedInputStream(bais, new CRC32());
            byte readBuffer[] = new byte[5];
            while(cis.read(readBuffer) >= 0)
            {
                value = cis.getChecksum().getValue();

            }
            String raw = "00000000" + Long.toHexString(value);
            String crc = raw.substring(raw.length() - 8);
            crc2 = crc.toUpperCase();
        }
        catch(Exception e)
        {
            System.out.println("Ada eksepsi : " + e);
            return "";
        }
        return "" + crc2;
    }