Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data CharType
- data PasswordFeature
- generatePassword :: [PasswordFeature] -> IO String
- validatePassword :: [PasswordFeature] -> String -> Either PasswordFeature ()
- formatCharType :: CharType -> String
- passwordFeatureMessage :: PasswordFeature -> String
Documentation
data PasswordFeature Source
generatePassword :: [PasswordFeature] -> IO String Source
Generate password based on given password features
validatePassword :: [PasswordFeature] -> String -> Either PasswordFeature () Source
Validate password based on features. Returns either first password feature that password does not conform to or void.
formatCharType :: CharType -> String Source
Return description of given char type
passwordFeatureMessage :: PasswordFeature -> String Source
Return description of given password feature