[ the jinxbot project :: home | community forum | bn# | controls | mbncsutil | get the source ]
Computes the 20-byte hash value of the CD key. This method is not CLS-compliant.

Namespace:  MBNCSUtil
Assembly:  MBNCSUtil (in MBNCSUtil.dll) Version: 2.1.7.22 (2.1.7.22)

Syntax

C#
public byte[] GetHash(
	uint clientToken,
	uint serverToken
)
Visual Basic (Declaration)
Public Function GetHash ( _
	clientToken As UInteger, _
	serverToken As UInteger _
) As Byte()
Visual C++
public:
array<unsigned char>^ GetHash(
	unsigned int clientToken, 
	unsigned int serverToken
)

Parameters

clientToken
Type: System..::.UInt32
A randomly-generated token value that is determined by session at the client.
serverToken
Type: System..::.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
System..::.InvalidOperationExceptionThrown if the object has not yet been initialized.

See Also