src/User.php
private function hashPassword($pwClear)
	{
		$this->debug->groupCollapsed(__METHOD__);
		$this->debug->time('hash');
		$hash = password_hash($pwClear, $this->cfg['passwordHashAlgo'], $this->cfg['passwordHashOptions']);
		$this->debug->log('hash', strlen($hash), $hash);
		$this->debug->timeEnd('hash');
		$this->debug->groupEnd();
		return $hash;
	}
private function hashPassword($pwClear)
	{
		$this->debug->groupCollapsed(__METHOD__);
		$this->debug->time('hash');
		$hash = password_hash($pwClear, $this->cfg['passwordHashAlgo'], $this->cfg['passwordHashOptions']);
		$this->debug->log('hash', strlen($hash), $hash);
		$this->debug->timeEnd('hash');
		$this->debug->groupEnd();
		return $hash;
	}
private function hashPassword ( $ pwClear ) { $ this -> debug -> groupCollapsed ( __METHOD__ ) ; $ this -> debug -> time ( 'hash' ) ; $ hash = password_hash ( $ pwClear , $ this -> cfg [ 'passwordHashAlgo' ] , $ this -> cfg [ 'passwordHashOptions' ] ) ; $ this -> debug -> log ( 'hash' , strlen ( $ hash ) , $ hash ) ; $ this -> debug -> timeEnd ( 'hash' ) ; $ this -> debug -> groupEnd ( ) ; return $ hash ; }
returns hashed password

@param string $pwClear clear-text password

@return string hased pw
returns hashed password