| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Crypto.PBKDF.ByteString
- sha1PBKDF1 :: ByteString -> ByteString -> Int -> ByteString
- sha256PBKDF1 :: ByteString -> ByteString -> Int -> ByteString
- sha512PBKDF1 :: ByteString -> ByteString -> Int -> ByteString
- sha1PBKDF2 :: ByteString -> ByteString -> Int -> Int -> ByteString
- sha256PBKDF2 :: ByteString -> ByteString -> Int -> Int -> ByteString
- sha512PBKDF2 :: ByteString -> ByteString -> Int -> Int -> ByteString
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
Arguments
| :: ByteString | the password |
| -> ByteString | the salt |
| -> Int | the iteration count |
| -> ByteString | the result key |
Arguments
| :: ByteString | the password |
| -> ByteString | the salt |
| -> Int | the iteration count |
| -> ByteString | the result key |
Arguments
| :: ByteString | the password |
| -> ByteString | the salt |
| -> Int | the iteration count |
| -> ByteString | the result key |
SHA-based PBKDF2 functions
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 |
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 |
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 |