Encrypt::password() 

\nn\t3::Encrypt()->password($clearTextPassword = '', $context = 'FE'); 

Hashing of a password according to the Typo3 principle. Application: Overwriting the password of a fe_user in the database

\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!