Package | com.smartfoxserver.v2.util |
Class | public class PasswordUtil |
Inheritance | PasswordUtil Object |
Method | Defined By | ||
---|---|---|---|
md5Password(pass:String):String [static]
Generates the MD5 hash of the user password. | PasswordUtil |
md5Password | () | method |
public static function md5Password(pass:String):String
Generates the MD5 hash of the user password.
Parameters
pass:String — The plain text password.
|
String — The hashed password.
|
var userName:String = "testName"; var userPass:String = "testPass"; var md5Pass:String = PasswordUtil.md5Password(userPass); sfs.send(new LoginRequest(userName, md5Pass, sfs.config.zone));