gzxcvbn_common
Common passwords and keyboard graphs for gzxcvbn.
This package provides:
- Passwords dictionary - 49,233 common passwords ranked by frequency
- Keyboard graphs - adjacency graphs for 6 keyboard layouts (QWERTY, AZERTY, DVORAK, QWERTZ, keypad, Mac keypad)
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.