473,396 Members | 1,773 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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)?
Apr 21 '10 #1
7 3510
Banfa
9,065 Expert Mod 8TB
What sort of files would this program be indexing normally?
Apr 21 '10 #2
weaknessforcats
9,208 Expert Mod 8TB
Why not use a software versioning product like Visual SourceSafe or SourceDepot?
Apr 21 '10 #3
Banfa
9,065 Expert Mod 8TB
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.
Apr 21 '10 #4
weaknessforcats
9,208 Expert Mod 8TB
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?
Apr 21 '10 #5
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..
Apr 21 '10 #6
donbock
2,426 Expert 2GB
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.
Apr 21 '10 #7
Banfa
9,065 Expert Mod 8TB
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

http://www.highprogrammer.com/alan/w...ourcesafe.html

http://www.developsense.com/testing/VSSDefects.html

I have to say it is a few years since I used it for anything so maybe they have fixed some of it.
Apr 21 '10 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Ricky Romaya | last post by:
Hi, I'm working on a file upload script. I need to calculate the CRC32 of the file(s) which are successfully uploaded. How can I do this? PHP only have CRC32 function for strings. However, the...
1
by: PaullyB | last post by:
Hi, I am attempting to convert the following code written in c to equivalent java code. This is the CRC32 algorithm used by a GPS received I am interfacing with. Unfortunately, the CRC32 class...
2
by: nobody | last post by:
1) Does anyone know if the CRC32 algorithm in binascii has a name? There seem to be a TON of different CRC32 methods; different polynomials, different byte orders, different seeds, some flip the...
6
by: Weiguang Shi | last post by:
Hi there, I'm thinking of using binascii.crc32 as a hash-function when I read in the reference http://www.python.org/doc/current/lib/module-binascii.html: crc32( data) Compute CRC-32, the...
14
by: Don | last post by:
Hi NG. Does anyone know of a place where I could download/get a C implementation of a CRC32 check. I would like a simple function that, for example, had a pointer to where the data to be CRC32...
9
by: UnixUser | last post by:
I am looking for some source code to run on Linux that will enable me to calculate and return a CRC32 value from a string of text. I have found one from snippets.org, but I cannot get it to...
6
by: Paul M. | last post by:
Hello, does anyone have either a User Function Library (or the source for one) to create a CRC32 checksum for a given string? I want to use the function in a crystal formula thus: formula =...
12
by: Larry Bates | last post by:
I'm trying to get the results of binascii.crc32 to match the results of another utility that produces 32 bit unsigned CRCs. binascii.crc32 returns results in the range of -2**31-1 and 2**21-1....
2
by: tlsk | last post by:
Hi I need to calculate the crc32 value for an unsigned array in C++.It goes like this.. unsigned char Myarray; //Myarray contains hex value ... b525b4d0ad533acee2d6a214453a279e Need to...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.