Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- newtype HashedPassword = HashedPassword {}
- newtype UnsafePassword = UnsafePassword {}
- class Monad m => PasswordGen m where
- hashPassword :: UnsafePassword -> m HashedPassword
- testPassword :: UnsafePassword -> HashedPassword -> Bool
Documentation
newtype HashedPassword Source #
A properly hashed password
Instances
Eq HashedPassword Source # | |
Defined in Conduit.Identity.Password (==) :: HashedPassword -> HashedPassword -> Bool # (/=) :: HashedPassword -> HashedPassword -> Bool # |
newtype UnsafePassword Source #
An unsafe plaintext password
Instances
FromJSON UnsafePassword Source # | |
Defined in Conduit.Identity.Password parseJSON :: Value -> Parser UnsafePassword # parseJSONList :: Value -> Parser [UnsafePassword] # | |
Validation NotBlank UnsafePassword Source # | |
Defined in Conduit.Identity.Password |
class Monad m => PasswordGen m where Source #
Some monad which can properly hash an UnsafePassword
hashPassword :: UnsafePassword -> m HashedPassword Source #
Instances
(Monad m, MonadIO m) => PasswordGen m Source # | |
Defined in Conduit.Identity.Password hashPassword :: UnsafePassword -> m HashedPassword Source # |
testPassword :: UnsafePassword -> HashedPassword -> Bool Source #
Validates a plaintext password against its hashed potential counterpart.