function needs_rehash($hash,$cost=self::COST) {
		list($pwcost)=sscanf($hash,"$2y$%d$");
		return $pwcost<$cost;
	}
function needs_rehash($hash,$cost=self::COST) {
		list($pwcost)=sscanf($hash,"$2y$%d$");
		return $pwcost<$cost;
	}
function needs_rehash ( $ hash , $ cost = self :: COST ) { list ( $ pwcost ) = sscanf ( $ hash , "$2y$%d$" ) ; return $ pwcost < $ cost ; }
Check if password is still strong enough
@return bool
@param $hash string
@param $cost int
Check if password is still strong enough