FileHashCalculator.

Calculate(FilePath, HashAlgorithm) Method

Summary

Calculates the hash for a file using the given algorithm.
Namespace
Cake.Common.Security
Containing Type
FileHashCalculator

Syntax

public FileHash Calculate(FilePath filePath, HashAlgorithm hashAlgorithm)

Parameters

Name Type Description
filePath FilePath The file path.
hashAlgorithm HashAlgorithm The algorithm to use.

Return Value

Type Description
FileHash A FileHash instance representing the calculated hash.