‪TYPO3CMS  9.5
TYPO3\CMS\Core\Crypto\PasswordHashing\AbstractComposedSalt Class Reference
Inheritance diagram for TYPO3\CMS\Core\Crypto\PasswordHashing\AbstractComposedSalt:
TYPO3\CMS\Saltedpasswords\Salt\AbstractComposedSalt TYPO3\CMS\Saltedpasswords\Salt\AbstractSalt

Public Member Functions

string base64Encode (string $input, int $count)
 

Protected Member Functions

string getItoa64 ()
 
int getLengthBase64FromBytes (int $byteLength)
 

Detailed Description

Abstract class with methods needed to be extended in a salted hashing class that composes an own salted password hash.

Deprecated:
‪and will be removed in TYPO3 v10.0.

Definition at line 24 of file AbstractComposedSalt.php.

Member Function Documentation

◆ base64Encode()

string TYPO3\CMS\Core\Crypto\PasswordHashing\AbstractComposedSalt::base64Encode ( string  $input,
int  $count 
)

Encodes bytes into printable base 64 using the *nix standard from crypt().

Parameters
string$input‪The string containing bytes to encode.
int$count‪The number of characters (bytes) to encode.
Returns
‪string Encoded string
Deprecated:
‪and will be removed in TYPO3 v10.0.

Definition at line 41 of file AbstractComposedSalt.php.

References $output, and TYPO3\CMS\Core\Crypto\PasswordHashing\AbstractComposedSalt\getItoa64().

◆ getItoa64()

string TYPO3\CMS\Core\Crypto\PasswordHashing\AbstractComposedSalt::getItoa64 ( )
abstractprotected

Returns a string for mapping an int to the corresponding base 64 character.

Returns
‪string String for mapping an int to the corresponding base 64 character

Referenced by TYPO3\CMS\Core\Crypto\PasswordHashing\AbstractComposedSalt\base64Encode().

◆ getLengthBase64FromBytes()

int TYPO3\CMS\Core\Crypto\PasswordHashing\AbstractComposedSalt::getLengthBase64FromBytes ( int  $byteLength)
protected

Method determines required length of base64 characters for a given length of a byte string.

Parameters
int$byteLength‪Length of bytes to calculate in base64 chars
Returns
‪int Required length of base64 characters
Deprecated:
‪and will be removed in TYPO3 v10.0.

Definition at line 77 of file AbstractComposedSalt.php.