Encrypt::password()
\nn\t3::Encrypt()->password($clearTextPassword = '', $context = 'FE');
Hashing eines Passwortes nach Typo3-Prinzip. Anwendung: Passwort eines fe_users in der Datenbank überschreiben
\nn\t3::Encrypt()->password('99grad');
Copied!
| @return string
Source Code
public function password ( $clearTextPassword = '', $context = 'FE' ) {
$hashInstance = GeneralUtility::makeInstance(PasswordHashFactory::class)->getDefaultHashInstance( $context );
$saltedPassword = $hashInstance->getHashedPassword( $clearTextPassword );
return $saltedPassword;
}
Copied!