This documentation is archived and is not being maintained.

HashAlgorithm.HashFinal Method

When overridden in a derived class, finalizes the hash computation after the last data is processed by the cryptographic stream object.

[Visual Basic]
Protected MustOverride Function HashFinal() As Byte()
protected abstract byte[] HashFinal();
protected: virtual unsigned char HashFinal()  __gc[] = 0;
protected abstract function HashFinal() : Byte[];

Return Value

The computed hash code.


This method finalizes any partial computation and returns the correct hash value for the data stream.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

HashAlgorithm Class | HashAlgorithm Members | System.Security.Cryptography Namespace | Cryptographic Services