plain-text password and hashed password datatypes and functions

Version on this page:
LTS Haskell 22.29:
Stackage Nightly 2024-07-18:
Latest on Hackage:

See all snapshots password appears in

BSD-3-Clause licensed by Dennis Gosnell
Maintained by [email protected]
This version can be pinned in stack with:password-,1824

Module documentation for

Depends on 3 packages(full list with versions):
Used by 1 package in lts-15.3(full list with versions):


Build Status Hackage Stackage LTS Stackage Nightly BSD3 license

This library provides datatypes and functions for working with passwords and password hashes in Haskell.

Also, see the password-instances package for instances for common typeclasses.


Changelog for password

  • hashPassWithSalt has switched function arguments for better currying. #6 Although be warned that multiple passwords should not be hashed with the same salt.
  • Removed Read instance from Pass and added Show instance. #6 See #5 for justification of this.
  • newSalt is now MonadIO m instead of IO. #6
  • PassCheckSucc has been renamed to PassCheckSuccess. #6
  • Hide data constructor from Pass and add the mkPass function to construct a Pass. #6
  • Thanks to Felix Paulusma (@Vlix) for the above changes!

  • Small fix to make sure the doctests build with stack. #3

  • Initial version.