code: public static int generate(String value)
    {
      int len = value.length();
      int crc = 0;
  
      for (int i = 0; i < len; i++) {
        crc = next(crc, value.charAt(i));
      }
  
      return crc;
    }
docs: Calculates CRC from a string.