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.