in reply to Re: Save space with CRC
in thread Save space with CRC

Many thank,

You right, probably this's a very good solution, becouse we dont computes all only if exists some colition or differnece, it's simple, easy and faster....

But the only change that I will be makes, perhaps is always compute a MD5, in this case, becouse the length of file alone is not a secure method, isn't it?

Well, many thank, big help, i'm reading too the other suggested that you tell me.

Thk again

Replies are listed 'Best First'.
Re^3: Save space with CRC
by perlfan (Parson) on Dec 19, 2007 at 20:19 UTC
    If you take into account MD5 of the file in addition to some other factors, such as file size or hash of the reverse of the file, you'll be okay. Also, CRC is used to detect errors in data trasmission or storage - not for comparing two files.

      Thk perlfan too, other very well suggestion is use "hash of the reverse of the file" I dont thinking in that but is really good.

      Please note that CRC is mostly used to check transmition but in fact the CRC is a "simple" method to transform any size of input data in a fix integer size, not less, not more, you can use that to anything that you want.

      The bad think about this it's very short an can be colition.

      Thk a lot to all.