Safe Haskell | None |
---|
Crypto.Password
- data CharType
- data PasswordFeature
- generatePassword :: [PasswordFeature] -> IO String
- validatePassword :: [PasswordFeature] -> String -> Either PasswordFeature ()
- formatCharType :: CharType -> String
- passwordFeatureMessage :: PasswordFeature -> String
Documentation
data PasswordFeature Source
Instances
generatePassword :: [PasswordFeature] -> IO StringSource
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 -> StringSource
Return description of given char type
passwordFeatureMessage :: PasswordFeature -> StringSource
Return description of given password feature