Copyright | (c) Eric Mertens 2015 |
---|---|
License | ISC |
Maintainer | emertens@gmail.com |
Safe Haskell | None |
Language | Haskell2010 |
Documentation
solutions :: String -> [String] Source #
Compute the list of valid passwords starting from a given one.
Note: This process works on reversed passwords with the rules
updated to work on reversed strings. This is to make nextPassword
easier to write.
isGoodPassword :: String -> Bool Source #
Check that a string satisfies the descending and duplicate letter rules.
Test that a string has at least count
non-overlapping double, adjacent
letters.
isGoodLetter :: Char -> Bool Source #
Test that a character is not in the set of "iol"
startOnGood :: String -> String Source #
Clean out the starting prohibited letters
nextPassword :: String -> String Source #
Increment a string from left to right while skipping the prohibited characters.