This is experimental documentation.
Computes the 20-byte hash value of the CD key. This method is not CLS-compliant.
Declaration Syntax
C# | Visual Basic | Visual 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 )
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 |
---|---|
InvalidOperationException | Thrown if the object has not yet been
initialized. |
Assembly: Asgard5Library (Module: Asgard5Library)