SecurityUtils.GetHashFromFile method

Version 1.1.28
.NET Framework 4.8
Namespace Skybrud.Essentials.Security
Assembly Skybrud.Essentials.dll

GetHashFromFile(HashAlgorithm, string)

Static

Gets the hash of the file specified by the path using the specified algorithm.

public static string GetHashFromFile(HashAlgorithm algorithm, string path)

Parameters

algorithm HashAlgorithm

The algorithm to be used.

path String

The path of the file.

Returns

The hash as a 64-character hexadecimal number.