Dvorak keyboard layout for zxcvbn-hs
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Peter J. Jones 8fad04f965
Update to work with zxcvbn-hs 0.2.0.0
2 months ago
data/keyboards/en-US Initial Import 2 months ago
src/Text/Password/Strength/Config Update to work with zxcvbn-hs 0.2.0.0 2 months ago
.envrc Update to work with zxcvbn-hs 0.2.0.0 2 months ago
.gitignore Initial Import 2 months ago
CHANGELOG.md Update to work with zxcvbn-hs 0.2.0.0 2 months ago
LICENSE Initial Import 2 months ago
README.md Initial Import 2 months ago
Setup.hs Initial Import 2 months ago
default.nix Initial Import 2 months ago
generate.sh Initial Import 2 months ago
shell.nix Update to work with zxcvbn-hs 0.2.0.0 2 months ago
zxcvbn-dvorak.cabal Update to work with zxcvbn-hs 0.2.0.0 2 months ago
zxcvbn-dvorak.nix Initial Import 2 months ago
zxcvbn-hs.nix Update to work with zxcvbn-hs 0.2.0.0 2 months ago

README.md

What?

This package enhances the zxcvbn password strength estimation algorithm by allowing it to detect keyboard patterns made with a Dvorak layout.

It also serves as an example of how to generate a keyboard layout for zxcvbn-hs.

How to Use this Package

Let’s say you want to add the Dvorak keyboard layout to the default en_US config:

import Text.Password.Strength.Config
import Text.Password.Strength.Config.Dvorak

myConfig :: Config
myConfig = dvorak en_US

How this Package is Put Together

Essentially:

  1. Edit the raw layout file in data/keyboards/en-US/dvorak.txt

  2. Turn that into Haskell with generate.sh

NOTE: The generate.sh script requires Nix to be installed.