Safe Haskell | None |
---|
- sha1PBKDF1 :: String -> String -> Int -> String
- sha256PBKDF1 :: String -> String -> Int -> String
- sha512PBKDF1 :: String -> String -> Int -> String
- sha1PBKDF2 :: String -> String -> Int -> Int -> String
- sha256PBKDF2 :: String -> String -> Int -> Int -> String
- sha512PBKDF2 :: String -> String -> Int -> Int -> String
Documentation
:: String | the password (will be encoded with UTF-8) |
-> String | the salt (will be encoded with UTF-8) |
-> Int | the iteration count |
-> String | the result key as a hex string |
Password Based Key Derivation Functions: This module provides stock implementations of the PBKDF functions from RFC-2898 based on the SHA-1, SHA-256 and SHA-256 hash functions. Each function takes the password and salt as a string and returns a hex string. To work with ByteStrings and provide your own hash and psuedo-random use the Crypto.PBKDF.Core that are used to implement these functions.
SHA-based PBKDF1 functions
:: String | the password (will be encoded with UTF-8) |
-> String | the salt (will be encoded with UTF-8) |
-> Int | the iteration count |
-> String | the result key as a hex string |
Password Based Key Derivation Functions: This module provides stock implementations of the PBKDF functions from RFC-2898 based on the SHA-1, SHA-256 and SHA-256 hash functions. Each function takes the password and salt as a string and returns a hex string. To work with ByteStrings and provide your own hash and psuedo-random use the Crypto.PBKDF.Core that are used to implement these functions.
SHA-based PBKDF1 functions
:: String | the password (will be encoded with UTF-8) |
-> String | the salt (will be encoded with UTF-8) |
-> Int | the iteration count |
-> String | the result key as a hex string |
Password Based Key Derivation Functions: This module provides stock implementations of the PBKDF functions from RFC-2898 based on the SHA-1, SHA-256 and SHA-256 hash functions. Each function takes the password and salt as a string and returns a hex string. To work with ByteStrings and provide your own hash and psuedo-random use the Crypto.PBKDF.Core that are used to implement these functions.
SHA-based PBKDF1 functions
:: String | the password (will be encoded with UTF-8) |
-> String | the salt (will be encoded with UTF-8) |
-> Int | the iteration count |
-> Int | the length of the key to be generated (in octets) |
-> String | the result key as a hex string |
SHA-based PBKDF2 functions