protected function makeBruteforceMatch($password, $begin, $end, $cardinality = null)
    {
        $match = new Bruteforce($password, $begin, $end, substr($password, $begin, $end + 1), $cardinality);
        // Set entropy in match.
        $match->getEntropy();

        return $match;
    }