[ the jinxbot project :: home | community forum | bn# | controls | mbncsutil | get the source ]
Assembly: MBNCSUtil (in MBNCSUtil.dll) Version: 2.1.7.22 (2.1.7.22)
Computes the 20-byte hash value of the CD key.
Namespace:
MBNCSUtilAssembly: MBNCSUtil (in MBNCSUtil.dll) Version: 2.1.7.22 (2.1.7.22)
Syntax
| C# |
|---|
public byte[] GetHash( int clientToken, int serverToken ) |
| Visual Basic (Declaration) |
|---|
Public Function GetHash ( _ clientToken As Integer, _ serverToken As Integer _ ) As Byte() |
| Visual C++ |
|---|
public: array<unsigned char>^ GetHash( int clientToken, int serverToken ) |
Parameters
- clientToken
- Type: System..::.Int32
A randomly-generated token value that is determined by session at the client.
- serverToken
- Type: System..::.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
| Exception | Condition |
|---|---|
| System..::.InvalidOperationException | Thrown if the object has not yet been initialized. |