Reference Library
GetHash Method (clientToken, serverToken)
NamespacesMBNCSUtilCdKeyGetHash(UInt32, UInt32)
Computes the 20-byte hash value of the CD key. This method is not CLS-compliant.
Declaration Syntax
C#Visual BasicVisual C++
[CLSCompliantAttribute(false)]
public byte[] GetHash(
	uint clientToken,
	uint serverToken
)
<CLSCompliantAttribute(False)> _
Public Function GetHash ( _
	clientToken As UInteger, _
	serverToken As UInteger _
) As Byte()
[CLSCompliantAttribute(false)]
public:
array<unsigned char>^ GetHash(
	unsigned int clientToken, 
	unsigned int serverToken
)
Parameters
clientToken (UInt32)
A randomly-generated token value that is determined by session at the client.
serverToken (UInt32)
A randomly-generated token value that is determined by session at the server.
Return Value
A 20-byte array containing the hash value of the specified key.
Remarks

The result of the hash calculation is used in the message 0x51 SID_AUTH_CHECK (from the client) as well as 0x36 SID_CDKEY2.

Exceptions
ExceptionCondition
InvalidOperationExceptionThrown if the object has not yet been initialized.

Assembly: Asgard5Library (Module: Asgard5Library)