Lazy-Pbkdf2-1.0.2: Lazy PBKDF2 generator.

Safe HaskellSafe
LanguageHaskell2010

Crypto.Pbkdf2

Synopsis

Documentation

pbkdf2 Source

Arguments

:: (ByteString -> ByteString -> ByteString)

PRF, the PRF function to be used for PBKDF2. The first argument is secret, the second argument is not.

-> ByteString

Password, the secret to use in the PBKDF2 computations.

-> ByteString

Salt, the not neccesarily secret data to use in the PBKDF2 computations.

-> Integer

c, number of iterations for the the PBKDF2 computations.

-> ByteString

DK, the output data in the format of an unlimited lazy ByteString.

hmacSha512Pbkdf2 Source

Arguments

:: ByteString
Password
-> ByteString
Salt
-> Integer
c
-> ByteString
DK

Example of the pbkdf2 function using SHA512. See pbkdf2 for usage.