Data::Password::zxcvbn::Combinatorics(3pm)

Data::Password::zxcvbn::Combinatorics3pm

Some combinatorial functions

Version

version 1.1.2

Overview

This module provides a few combinatorial functions that are used throughout the library.

Functions

"nCk"

  my $combinations = nCk($available,$taken);

Returns the binomial coefficient:

 / $available \
 |            |
 \   $taken   /

"enumerate_substitution_maps"

 my $enumeration = enumerate_substitution_maps(\%substitutions);

Given a hashref of arrayrefs, interprets it as a map of substitutions. Returns an arrayref of hashrefs, containing all reverse-substitutions.

For example, given:

 {'a' => ['@', '4']}

("'a' can be replaced with either '@' or '4'")

it returns:

  [{'@' => 'a'}, {'4' => 'a'}] ],

("in one case, '@' could have been substituted for 'a'; in the other, '4' could have been substituted for 'a'")

"factorial"

  my $fact = factorial($number);

Returns the factorial of the given number.

Releases

3 releases since Debian 11 (Bullseye); the text changed 1 time.

  1. 11
  2. 12–13

Author

Gianni Ceccarelli <[email protected]>

From libdata-password-zxcvbn-perl 1.1.2-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.