Help Center/ Huawei HiLens/ SDK Reference/ Resource Management/ Calculating the MD5 Values of Files
Updated on 2023-06-15 GMT+08:00

Calculating the MD5 Values of Files

This section describes how to calculate the MD5 values of files.

API Calling

std::string hilens::MD5ofFile(const std::string & filepath)

Parameter Description

Table 1 Parameters

Parameter

Description

file

The file path.

Return Value

MD5 value of a file. The value is a character string. If the file fails to be read, a null character string is returned.