Click or drag to resize

FileHashIsValid Method (Stream, Int32, String)

Checks if the hash for specified stream has correct value.

Namespace:  Limilabs.FTP.Client.Hash
Assembly:  Ftp (in Ftp.dll) Version: 2.0.22214.1022
Syntax
public bool IsValid(
	Stream stream,
	int length,
	string expectedHashAsHex
)

Parameters

stream
Type: System.IOStream
The stream to compute hash for.
length
Type: SystemInt32
Number of bytes to compute hash for.
expectedHashAsHex
Type: SystemString
Expected hash encoded as hex string (e.g.: 7BEE53C5).

Return Value

Type: Boolean
True if hashes match, false otherwise.
See Also