Version File Integrity Check

You can use an SHA256 hash file to check the integrity of the files downloaded by a device. The SHA256 checksum of a file to be downloaded is saved in the SHA256 hash file before the file is downloaded. After the file is downloaded, the device generates an SHA256 checksum using the downloaded file and compares it with that in the SHA256 hash file. If the checksums are different, the file fails the integrity check and will not be loaded by the device.

The SHA256 hash file must be suffixed with .txt, in the format shown in .

You can use either of the following methods to generate an SHA256 checksum for a script file:

  1. Use the SHA256 calculation tool, such as HashMyFiles.
  2. Run the certutil -hashfile filename SHA256 command provided by the Windows operating system.

The SHA256 checksum in the following file is only an example.

The SHA256 algorithm can be used to verify the integrity of files. This algorithm has high security.

#sha256sum="29d29a2b0ef2136f0f192667d71627020e58438fbfb87323f2dae27b5cd9a797"

file-name                    sha256
conf_5618642831132.cfg    319c16ebcbc987ef11f28f78cb7d6e7ea4950b8b195e1388c031f3327cc2666e
Table 1 Description of fields in the SHA256 hash file

Field

Mandatory

Description

#sha256sum

Yes

Checksum of the SHA256 hash file

file-name

Yes

File name

sha256

Yes

SHA256 checksum of the file

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >