Reference Library
DoubleHashPassword Method (data, clientToken, serverToken)
NamespacesMBNCSUtilOldAuthDoubleHashPassword(String, Int32, Int32)
Calculates the double-pass "broken" SHA-1 hash of the specified password using ASCII encoding.
Declaration Syntax
C#Visual BasicVisual C++
public static byte[] DoubleHashPassword(
	string data,
	int clientToken,
	int serverToken
)
Public Shared Function DoubleHashPassword ( _
	data As String, _
	clientToken As Integer, _
	serverToken As Integer _
) As Byte()
public:
static array<unsigned char>^ DoubleHashPassword(
	String^ data, 
	int clientToken, 
	int serverToken
)
Parameters
data (String)
The password to hash.
clientToken (Int32)
The client token, a randomly-generated value specified by the client.
serverToken (Int32)
The server token, a randomly-generated value specified by the server.
Return Value
A 20-byte buffer containing the hash value.

Assembly: Asgard5Library (Module: Asgard5Library)