Generates the MD5 hash of the user password.

Namespace: Sfs2X.Util
Assembly: SmartFox2X (in SmartFox2X.dll) Version: 1.7.3.0 (1.7.3)

Syntax

C#
public static string MD5Password(
	string pass
)

Parameters

pass
Type: System..::..String
The plain text password.

Return Value

Type: String
The hashed password.

Examples

 Copy imageCopy
string userName = "testName";
string userPass = "testPass";
string md5Pass = PasswordUtil.MD5Password(userPass);
sfs.Send(new LoginRequest(userName, md5Pass, sfs.Config.Zone));

See Also