Announcement

Collapse
No announcement yet.

Utility to find file CRC

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Utility to find file CRC

    Is there any utility to calculate file CRC the same way as SUF's tool does?

    I found that unix tool cksum do not give same values.

    Timo

  • #2
    Re: Utility to find file CRC

    Can you give an example?

    I'd bet dollars to donuts that cksum is just outputting the same value in hex.
    --[[ Indigo Rose Software Developer ]]

    Comment


    • #3
      Re: Utility to find file CRC

      Here:

      [21.58.27] H:\W2K\SetupFactory6> cksum --version
      cksum (GNU textutils) 2.0
      Written by Q. Frank Xia.

      Copyright (C) 1999 Free Software Foundation, Inc.
      This is free software; see the source for copying conditions. There is NO
      warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

      [21.58.35] H:\W2K\SetupFactory6> cksum *.exe
      1634060151 212992 Convert40.exe
      696267704 311296 Project Converter.exe
      2109582698 2039808 SUF60Design.exe
      1514508696 675840 update.exe

      ---

      With SUF6 I get the following results:

      H:\W2K\SetupFactory6\Convert40.exe: 409282661
      H:\W2K\SetupFactory6\Project Converter.exe: 623491489
      H:\W2K\SetupFactory6\SUF60Design.exe: 2794894113
      H:\W2K\SetupFactory6\update.exe: 3228215393

      ---

      Quote from man page:
      "Note: The cksum command is POSIX 1003.2 compliant and the checksum produced
      is guaranteed to be calculated the same on all POSIX 1003.2 compliant
      systems."

      ---

      Which version of cksum do You have?

      Timo

      [This message has been edited by tuhkanen (edited 04-15-2002).]

      Comment


      • #4
        Re: Utility to find file CRC

        The problem with CRC32 algorithms is that there is more than one approved standard out there. cksum even allows for this, if you check out the --man for it.

        POSIX.2 either uses a different algorithm or a different polynomial. I'm not sure offhand which algorithm SF6 uses, but I know for a fact that it is a common one.

        You may want to use this utility instead:
        http://www.inwa.net/~frog/boo/win32/intel/crc.zip

        ...which is found at:
        http://www.inwa.net/~frog/bamboo.htm

        It outputs the values in hex, but they match Setup Factory's once converted.

        There's also a freeware GUI utility that might work: (I haven't tried it so I don't know what algorithm it uses)
        http://www.skylarkutilities.com/program.pcs?crc32
        --[[ Indigo Rose Software Developer ]]

        Comment


        • #5
          Re: Utility to find file CRC

          >It outputs the values in hex ...
          ---

          Thank you!

          I have a very strong feeling that SetupFactory is a good program and the support team is one of the best!

          Comment

          Working...
          X