- Documentation
Torch Object Storage
Best Practices
Checking data integrity
Verifying the integrity of downloaded objects
Checking data integrity
Verifying the integrity of downloaded objects
Verifying the integrity of downloaded objects
This topic illustrates the validation workflow and provides sample codes for validating the integrity of downloaded objects using the CRC-64 algorithm. How it works
In scenarios where an entire object is downloaded in a single operation, the client calculates a CRC-64 checksum while receiving the data. This value is then compared to the CRC-64 checksum stored on the server to ensure the integrity of the downloaded data.
When an object is downloaded in segments using the Range header, a composite checksum is calculated based on the individual checksums of each segment. This value is then compared to the checksum of the entire object that the server returns to ensure the integrity of the final downloaded object.
Flowchart
Code examples
Last updated: 2026.08.25 10:39:45