gzxcvbn_common

Package Version Hex Docs

Common passwords and keyboard graphs for gzxcvbn.

This package provides:

Installation

gleam add gzxcvbn_common

Usage

import gzxcvbn
import gzxcvbn/common

pub fn main() {
  let opts =
    gzxcvbn.options()
    |> gzxcvbn.with_dictionaries(common.dictionaries())
    |> gzxcvbn.with_graphs(common.graphs())
    |> gzxcvbn.build()

  // ...
}

You can also add individual dictionaries or graphs:

let opts =
  gzxcvbn.options()
  |> gzxcvbn.with_dictionaries([common.passwords()])
  |> gzxcvbn.with_graphs([common.qwerty()])
  |> gzxcvbn.build()

Further documentation can be found at https://hexdocs.pm/gzxcvbn_common.

Search Document