The security helper.
Encrypt password.
$encrypt_password = Security::encryptPassword($password);
Encrypt password.
$safe_name = Security::safeName('Some text');
Create safe url.
$sanitize_url = Security::sanitizeURL('http://site.com');
Sanitize URL to prevent XSS - Cross-site scripting.
$sanitize_url = Security::runSanitizeURL('http://site.com');
That prevents null characters between ascii characters.
$text = Security::removeInvisibleCharacters('Some text');
Sanitize data to prevent XSS - Cross-site scripting.
$text = Security::xssClean('Some text');