---
name: "Data::Password::zxcvbn::Match::Repeat"
section: "3pm"
platform: "linux"
package: "libdata-password-zxcvbn-perl"
version: "1.1.2-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Data::Password::zxcvbn::Match::Repeat"
---

# Data::Password::zxcvbn::Match::Repeat(3pm)

match class for repetitions of other matches

## NAME

Data::Password::zxcvbn::Match::Repeat - match class for repetitions of other matches

## VERSION

version 1.1.2

## DESCRIPTION

This class represents the guess that a certain substring of a password is a repetition of some other kind of match.

## ATTRIBUTES

### "repeat\_count"

integer, how many time the "`"base_token"`" is repeated

### "base\_token"

the match that is repeated; this will be an instance of some other `"Data::Password::zxcvbn::Match::*"` class

### "base\_guesses"

the minimal estimate of the attempts needed to guess the "`"base_token"`"

### "base\_matches"

the list of patterns that "`"base_guesses"`" is based on

## METHODS

### "make"

```
  my @matches = @{ Data::Password::zxcvbn::Match::Repeat->make(
    $password, \%opts,
  ) };
```

Scans the `$password` for repeated substrings, then recursively analyses them like the main `"password_strength"` function would do:

```
  password_strength($substring,\%opts);
```

"`"base_guesses"`" and "`"base_matches"`" come from that recursive call.

### "estimate\_guesses"

The number of guesses is the "`"base_guesses"`" times the "`"repeat_count"`".

### "feedback\_warning"

### "feedback\_suggestions"

This class suggests not to repeat substrings.

### "fields\_for\_json"

The JSON serialisation for matches of this class will contain `"token` `i j guesses guesses_log10 repeat_count base_guesses base_token` `base_matches"`.

## AUTHOR

Gianni Ceccarelli \<gianni.ceccarelli@broadbean.com\>

## COPYRIGHT AND LICENSE

This software is copyright (c) 2022 by BroadBean UK, a CareerBuilder Company.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
