@hackage argon21.3.0.0

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

  • Installation

  • Dependencies (4)

  • Dependents (2)

    @hackage/intricacy, @hackage/keysafe
  • Package Flags

      use-system-library
       (off by default)

      Link against system libargon2 library (discovery via pkg-config(1)) rather than using embedded copy of libargon2

      non-optimised-c
       (off by default)

      Force use of non-optimised C routines on x86_64. Ineffective when use-system-library flag is active.

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.