pbkdf-1.1.1.0: Haskell implementation of the PBKDF functions from RFC-2898.

Safe HaskellNone
LanguageHaskell2010

Crypto.PBKDF.ByteString

Contents

Synopsis

Password Based Key Derivation Functions

This module provides stock implementations of the PBKDF functions from RFC-2898 (http://www.ietf.org/rfc/rfc2898.txt), based on the SHA-1, SHA-256 and SHA-256 hash functions. Each function takes the password and salt as a ByteString and returns the Hash as a ByteString.

SHA-based PBKDF1 functions

sha1PBKDF1 Source

Arguments

:: ByteString

the password

-> ByteString

the salt

-> Int

the iteration count

-> ByteString

the result key

sha256PBKDF1 Source

Arguments

:: ByteString

the password

-> ByteString

the salt

-> Int

the iteration count

-> ByteString

the result key

sha512PBKDF1 Source

Arguments

:: ByteString

the password

-> ByteString

the salt

-> Int

the iteration count

-> ByteString

the result key

SHA-based PBKDF2 functions

sha1PBKDF2 Source

Arguments

:: ByteString

the password

-> ByteString

the salt

-> Int

the iteration count

-> Int

the length of the key to be generated (in octets)

-> ByteString

the result key

sha256PBKDF2 Source

Arguments

:: ByteString

the password

-> ByteString

the salt

-> Int

the iteration count

-> Int

the length of the key to be generated (in octets)

-> ByteString

the result key

sha512PBKDF2 Source

Arguments

:: ByteString

the password

-> ByteString

the salt

-> Int

the iteration count

-> Int

the length of the key to be generated (in octets)

-> ByteString

the result key