Documentation

Security


The security helper.


encryptPassword(string $password)


Encrypt password.


$encrypt_password = Security::encryptPassword($password);

safeName(string $str, [string $delimiter = '-', [boolean $lowercase = false]])


Encrypt password.


$safe_name = Security::safeName('Some text');

sanitizeURL(string $url)


Create safe url.


$sanitize_url = Security::sanitizeURL('http://site.com');

runSanitizeURL()


Sanitize URL to prevent XSS - Cross-site scripting.


$sanitize_url = Security::runSanitizeURL('http://site.com');

removeInvisibleCharacters(string $str)


That prevents null characters between ascii characters.


$text = Security::removeInvisibleCharacters('Some text');

xssClean(string $str)


Sanitize data to prevent XSS - Cross-site scripting.


$text = Security::xssClean('Some text');