Reference Library
GetHash Method (clientToken, serverToken)
NamespacesMBNCSUtilCdKeyGetHash(Int32, Int32)
Computes the 20-byte hash value of the CD key.
Declaration Syntax
C#Visual BasicVisual C++
public byte[] GetHash(
	int clientToken,
	int serverToken
)
Public Function GetHash ( _
	clientToken As Integer, _
	serverToken As Integer _
) As Byte()
public:
array<unsigned char>^ GetHash(
	int clientToken, 
	int serverToken
)
Parameters
clientToken (Int32)
A randomly-generated token value that is determined by session at the client.
serverToken (Int32)
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)