argon2

Memory-hard password hash and proof-of-work function

Latest on Hackage:1.3.0.1@rev:4

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

BSD-3-Clause licensed by Ollie Charles, Herbert Valerio Riedel

Argon2 is the key derivation function (KDF) selected as the winner of the Password Hashing Competition. The API exposed by this bindings provide access to the 3 specified variants

  • Argon2d (maximize resistance to GPU cracking attacks),

  • Argon2i (optimized to resist side-channel attacks), and

  • Argon2id (hybrid version combining Argon2d and Argon2i)

and allows to control various parameters (time cost, memory cost, parallelism) of the Argon2 function. Moreover, it is also supported to generate and verify the deprecated version 1.0 hashes, as well as the current version 1.3 hashes.

The Haskell API supports both raw binary hashes as well as the ASCII-based PHC string format.

This version provides bindings to the "20171227" release of the Argon2 reference implementation (libargon2) of the Argon2 password-hashing function.

Please refer to the Argon2 specification for more information.