realworld-hs-0.1.0.0: Scotty impl of https://github.com/gothinkster/realworld
Safe HaskellSafe-Inferred
LanguageGHC2021

Conduit.Identity.Password

Synopsis

Documentation

newtype HashedPassword Source #

A properly hashed password

Constructors

HashedPassword 

Fields

Instances

Instances details
Eq HashedPassword Source # 
Instance details

Defined in Conduit.Identity.Password

newtype UnsafePassword Source #

An unsafe plaintext password

Constructors

UnsafePassword 

Fields

class Monad m => PasswordGen m where Source #

Some monad which can properly hash an UnsafePassword

Instances

Instances details
(Monad m, MonadIO m) => PasswordGen m Source # 
Instance details

Defined in Conduit.Identity.Password

testPassword :: UnsafePassword -> HashedPassword -> Bool Source #

Validates a plaintext password against its hashed potential counterpart.