-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | A bcrypt implementation for haskell -- -- Wraps around the OpenBSD blowfish implementation to implement bcrypt. -- -- A slightly modified (for build purposes) bcrypt c library is included. -- -- See http://www.usenix.org/events/usenix99/provos.html @package haskell-bcrypt @version 0.3 module Data.Digest.BCrypt -- | Hash a password based on a BSalt with a given cost bcrypt :: ByteString -> BSalt -> ByteString -- | Given a cost from 4-32 and a random seed of 16 bytes generate a salt. -- Seed should be 16 bytes from a secure random generator genSalt :: Integer -> ByteString -> Maybe BSalt -- | Given a bytestring, construct a BSalt type, with some minimal checking packBSalt :: ByteString -> Maybe BSalt -- | BCrypt salt for passing to bcrypt. data BSalt instance Eq BSalt instance Ord BSalt instance Show BSalt