java.lang.Object
org.seppiko.commons.utils.crypto.CRCUtil

public class CRCUtil extends Object
CRC utility
Author:
Leonard Woo
  • Method Details

    • getCRC16M

      public static long getCRC16M(byte[] data)
      Return CRC-16 MAXIM
      Parameters:
      data - data byte array
      Returns:
      the current checksum value
    • getCRC24C

      public static long getCRC24C(byte[] data)
      Return CRC-24
      Parameters:
      data - data byte array
      Returns:
      the current checksum value
    • getCRC32

      public static long getCRC32(byte[] data)
      Return CRC-32C
      Parameters:
      data - data byte array
      Returns:
      the current checksum value
    • getCRC64E

      public static long getCRC64E(byte[] data)
      Return CRC64 ECMA182
      Parameters:
      data - data byte array
      Returns:
      the current checksum value