开发者

Where to start to use CRC for error checking?

开发者 https://www.devze.com 2023-03-27 14:11 出处:网络
I am trying to use CRC for error checking for downloaded files. I used NSURLConnection for downloading file.

I am trying to use CRC for error checking for downloaded files. I used NSURLConnection for downloading file. But I have no idea where to start to use CRC for error checking. Do I use some libraries? If so, would you recommend me one?开发者_JAVA百科 Can anyone tell me where I can find any examples or tutorials for CRC usage in c++ or objective c? Thank you very much


First off, how is the file CRC handled on the server (if at all)? There are a multitude of algorithms (CRC32 for simple checksum, MD5/SHA for cryptographic hashes) which can be used, and you must use the same one. If the server does not provide any checksum information (say, from a checksum file), there is no use for a checksum as there is nothing to compare it to.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号