As above you have some options.
You can compress, encrypt/password, and archive these files. There are also functions to chop it up into a lot of smaller files if you have smaller storage mediums (like CDs or similar). I believe the format even implements another layer of file integrity. It really just depends on what you're trying to do.
What exactly? The program or the actual compression algorithm?Yes I am only interested in how it works
You don't need to do anything here, winrar (and most sane compression programs) by default calculate a checksum to make sure that the archive is not corrupted.how to implement file integrity with winrar?
What exactly? The program or the actual compression algorithm?
You don't need to do anything here, winrar (and most sane compression programs) by default calculate a checksum to make sure that the archive is not corrupted.
Any file can become corrupted, it's not specific to just compressed archives. It verifies the file after compressing it to be sure it's correct, but anything after that could cause corruption such as a disk failure or power failure. Then again though, that can happen to any file.how can they make sure no corruption when corruption happens to the archive themselves?
For each file, winrar calculates a checksum and stores it in the archive along the with the compressed file; when the file is uncompressed, its checksum is calculated again and then compared with the stored checksum to make sure that the file has not been altered.how can they make sure no corruption when corruption happens to the archive themselves?