in reply to (Checking String::CRC) Re: CRC-16 algorithm
in thread CRC-16 algorithm

CRC16 crc = new CRC16(); System.out.println("CRC16 = " + crc.getCRC16("050101")); } public String getCRC16(String input) { byte[] bytes = input.getBytes(); int crc = 0x0000; for (byte b : bytes) { crc = (crc >>> 8) ^ table(crc ^ b) & 0xff; } return Integer.toHexString(crc); }

Replies are listed 'Best First'.
Re^3: CRC-16 algorithm
by Anonymous Monk on Feb 23, 2015 at 12:23 UTC
    anyone explain this
      its not perl, the end