共用方式為


ImageStoreUtility.ComputeHash(String, String, Boolean) Method

Definition

Compute hash of file or directory. Directory hash uses Merkel tree to compute hash

public static string ComputeHash (string algorithm, string path, bool ignoreCase);
static member ComputeHash : string * string * bool -> string
Public Shared Function ComputeHash (algorithm As String, path As String, ignoreCase As Boolean) As String

Parameters

algorithm
String

algorithm to compute hash, sha256

path
String

path to the file or directory

ignoreCase
Boolean

if path is directory, this parameter is effective. If true, names in the directory are transformed to lower-case to compute hash.

Returns

the hash value in the format of hex string e.g. 0123456789ABCDEF

Applies to