Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Conduit.Identity.Password
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
Constructors
HashedPassword | |
Instances
Eq HashedPassword Source # | |
Defined in Conduit.Identity.Password Methods (==) :: HashedPassword -> HashedPassword -> Bool # (/=) :: HashedPassword -> HashedPassword -> Bool # |
newtype UnsafePassword Source #
An unsafe plaintext password
Constructors
UnsafePassword | |
Instances
FromJSON UnsafePassword Source # | |
Defined in Conduit.Identity.Password Methods 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
Methods
hashPassword :: UnsafePassword -> m HashedPassword Source #
Instances
(Monad m, MonadIO m) => PasswordGen m Source # | |
Defined in Conduit.Identity.Password Methods hashPassword :: UnsafePassword -> m HashedPassword Source # |
testPassword :: UnsafePassword -> HashedPassword -> Bool Source #
Validates a plaintext password against its hashed potential counterpart.