Inheritance diagram for Security:

Static Public Member Functions | |
| cipher ($text, $key) | |
| generateAuthKey () | |
| & | getInstance () |
| hash ($string, $type=null, $salt=false) | |
| inactiveMins () | |
| setHash ($hash) | |
| validateAuthKey ($authKey) | |
Public Attributes | |
| $hashType = null | |
Definition at line 35 of file security.php.
| Security::cipher | ( | $ | text, | |
| $ | key | |||
| ) | [static] |
Encrypts/Decrypts a text using the given key.
| string | $text Encrypted string to decrypt, normal string to encrypt | |
| string | $key Key to use |
Definition at line 172 of file security.php.
References $out, __(), and getInstance().
| Security::generateAuthKey | ( | ) | [static] |
Generate authorization hash.
Definition at line 86 of file security.php.
References hash(), App::import(), and String::uuid().
Referenced by ProjectTask::securitySalt().
| & Security::getInstance | ( | ) | [static] |
Singleton implementation to get object instance.
Definition at line 50 of file security.php.
Referenced by cipher(), hash(), inactiveMins(), and setHash().
| Security::hash | ( | $ | string, | |
| $ | type = null, |
|||
| $ | salt = false | |||
| ) | [static] |
Create a hash from string using given method. Fallback on next available method.
| string | $string String to hash | |
| string | $type Method to use (sha1/sha256/md5) | |
| boolean | $salt If true, automatically appends the application's salt value to $string (Security.salt) |
Definition at line 116 of file security.php.
References getInstance(), md5(), and Configure::read().
Referenced by generateAuthKey(), AuthComponent::password(), and FormHelper::secure().
| Security::inactiveMins | ( | ) | [static] |
Get allowed minutes of inactivity based on security level.
Definition at line 64 of file security.php.
References getInstance(), low(), and Configure::read().
Referenced by __construct(), and _checkValid().
| Security::setHash | ( | $ | hash | ) | [static] |
Sets the default hash method for the Security object. This affects all objects using Security::hash().
| string | $hash Method to use (sha1/sha256/md5) public |
Definition at line 159 of file security.php.
References getInstance().
| Security::validateAuthKey | ( | $ | authKey | ) | [static] |
Validate authorization hash.
| string | $authKey Authorization hash |
Definition at line 101 of file security.php.
| Security::$hashType = null |
Definition at line 42 of file security.php.
1.4.7