/** * @test */ public function createdSaltedHashOfProperStructureForCustomSaltWithoutSetting() { $this->skipTestIfBlowfishIsNotAvailable(); $password = '******'; // custom salt without setting $randomBytes = t3lib_div::generateRandomBytes($this->objectInstance->getSaltLength()); $salt = $this->objectInstance->base64Encode($randomBytes, $this->objectInstance->getSaltLength()); $this->assertTrue($this->objectInstance->isValidSalt($salt)); $saltedHashPassword = $this->objectInstance->getHashedPassword($password, $salt); $this->assertTrue($this->objectInstance->isValidSaltedPW($saltedHashPassword)); }