PasswordUtil

Helper class to log in with a pre-hashed password.

This is needed if your server-side database stores User passwords hashed with SHA256. For more information check SmartFoxServer's Sign Up Assistant Component documentation.

Methods

(static) sha256Password(pass) → {string}

Generates the SHA256 hash of a password.
Parameters:
NameTypeDescription
passstringThe plain text password.
Returns:
The hashed password.
Type: 
string