Java CRC32 Byte Array getCRC32(String str)

Here you can find the source of getCRC32(String str)

Description

get CRC

License

Apache License

Declaration

public static String getCRC32(String str) 

Method Source Code

//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;
    }
}

Related

  1. crc32Number(String s)
  2. crcBytes(byte[]... data)
  3. createRandomCrc32Hex()
  4. getCRC()
  5. getCrc32(byte[] buf)
  6. getCrc32asInt(byte[] in)
  7. getCRC32Checksum(byte[] bytes)
  8. getCRC32Checksum(String pString)