![]() |
TYPO3
7.6
|
Public Member Functions | |
base64Encode ($input, $count) | |
Protected Member Functions | |
applySettingsToSalt ($salt) | |
getGeneratedSalt () | |
getItoa64 () | |
getSetting () | |
getLengthBase64FromBytes ($byteLength) | |
Abstract class with methods needed to be extended in a salted hashing class.
Definition at line 21 of file AbstractSalt.php.
|
abstractprotected |
Method applies settings (prefix, optional hash count, optional suffix) to a salt.
string | $salt | A salt to apply setting to |
base64Encode | ( | $input, | |
$count | |||
) |
Encodes bytes into printable base 64 using the *nix standard from crypt().
string | $input | The string containing bytes to encode. |
int | $count | The number of characters (bytes) to encode. |
Definition at line 60 of file AbstractSalt.php.
References AbstractSalt\getItoa64().
Referenced by PhpassSalt\cryptPassword(), Md5Salt\getGeneratedSalt(), and PhpassSalt\getGeneratedSalt().
|
abstractprotected |
Generates a random base salt settings for the hash.
|
abstractprotected |
Returns a string for mapping an int to the corresponding base 64 character.
Referenced by AbstractSalt\base64Encode().
|
protected |
Method determines required length of base64 characters for a given length of a byte string.
int | $byteLength | Length of bytes to calculate in base64 chars |
Definition at line 94 of file AbstractSalt.php.
Referenced by Md5Salt\applySettingsToSalt(), BlowfishSalt\applySettingsToSalt(), PhpassSalt\applySettingsToSalt(), PhpassSalt\cryptPassword(), Md5Salt\isValidSalt(), BlowfishSalt\isValidSalt(), and PhpassSalt\isValidSalt().
|
abstractprotected |
Returns setting string to indicate type of hashing method.