crc32/checksum app

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • andwan0
    New Member
    • Jun 2009
    • 7

    #1

    crc32/checksum app

    I'd like to write a C++ app program that would store a list of files (by relative path/location) plus it's CRC32 or checksum. Then it would also store more CRC32/checksums for the same file, for each snapshot in time.

    The main usage of the app would be to help identify which versions of the current folder contents are.

    Does anyone know such program already exist? If not, how to write in C++ with common libraries (boost, etc)?
  • Banfa
    Recognized Expert Expert
    • Feb 2006
    • 9067

    #2
    What sort of files would this program be indexing normally?

    Comment

    • weaknessforcats
      Recognized Expert Expert
      • Mar 2007
      • 9214

      #3
      Why not use a software versioning product like Visual SourceSafe or SourceDepot?

      Comment

      • Banfa
        Recognized Expert Expert
        • Feb 2006
        • 9067

        #4
        Assuming it was text and not binary files (which most source control software is not efficient at handling) I was going to sujjest Subversion.

        Personally I wouldn't touch Visual SourceSafe with a 10' bargepole unless I really had no other option.

        Comment

        • weaknessforcats
          Recognized Expert Expert
          • Mar 2007
          • 9214

          #5
          Other than it's Microsoft, what is the problem?

          I use it with no difficulties. Is there a land mine here I don't know about?

          Comment

          • andwan0
            New Member
            • Jun 2009
            • 7

            #6
            It's binary. Large ~3MB files. Yes I could use version control and submit the various stages. But I was hoping for a identification app that could analyse an existing folder and report me the versions of each file..This would be a generic app that someone could download and use too... so they can't rely on some 3rd party source control..

            Comment

            • donbock
              Recognized Expert Top Contributor
              • Mar 2008
              • 2427

              #7
              Another option is to compute the 32-bit MD5 hash of the file(s) you're interested in. This can be accomplished prettily easily in perl by making use of the readily available Digest::MD5 package.

              Comment

              • Banfa
                Recognized Expert Expert
                • Feb 2006
                • 9067

                #8
                Originally posted by weaknessforcats
                Other than it's Microsoft, what is the problem?
                Understand that this is not an anti-Microsoft thing.

                My experience of VSS is that it is rather feature poor and that it has a tendancy to corrupt its own archives.

                Here are a couple of other negative views

                Microsoft's Visual SourceSafe is bad software. You will regret using it. Here are details on the problems with Visual SourceSafe.




                I have to say it is a few years since I used it for anything so maybe they have fixed some of it.

                Comment

                Working...