-
Python 3: Ensure you have Python 3 installed on your machine. You can verify this by running “
python --version” in the command prompt or terminal. If Python 3 is not installed, download it from Python.org. -
Required Libraries: Make sure you have the
crc32candbase64libraries installed. These are usually included in standard Python installations, but if they are not present, you can install them using ”pip install crc32c base64”.
-
Save the Code: Save the provided Python code (with chunk reading) as a
.pyfile. You can name it something likecalculate_crc32c.py. Download from Github -
Open Command Prompt or Terminal: Open a command prompt or terminal window.
-
Navigate to File Directory: Use the
cdcommand to navigate to the directory where you saved the Python file. -
Run the Script: Execute the following command:
python calculate_crc32c.py -
Provide File Path: The script will prompt you to enter the file path for which you want to calculate the CRC32C checksum. Provide the absolute or relative path to the file.
-
Get the Result: After providing the file path, the script will calculate the CRC32C checksum and print the Base64-encoded result.
Compare the hash provided by the server with the hash generated by following the above steps. If they match, the file has been successfully verified.