Hoogle Search
Within LTS Haskell 24.43 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
authenticationTagFromHexByteString :: StrictByteString -> Either Text AuthenticationTagsel Sel.HMAC.SHA512_256 Create an AuthenticationTag from a binary StrictByteString that you have obtained on your own, usually from the network or disk. The input secret key, once decoded from base16, must be of length cryptoAuthHMACSHA512256Bytes.
authenticationTagToHexByteString :: AuthenticationTag -> StrictByteStringsel Sel.HMAC.SHA512_256 Convert an AuthenticationTag to a hexadecimal-encoded StrictByteString in constant time.
unsafeAuthenticationKeyToHexByteString :: AuthenticationKey -> StrictByteStringsel Sel.HMAC.SHA512_256 Convert a 'AuthenticationKey to a hexadecimal-encoded StrictByteString in constant time. ⚠️ Be prudent as to where you store it!
hashByteString :: Maybe HashKey -> StrictByteString -> Hashsel Sel.Hashing Hash a StrictByteString with the BLAKE2b algorithm, and an optional key. Without a HashKey, hashing the same data twice will give the same result.
hashToHexByteString :: Hash -> StrictByteStringsel Sel.Hashing Convert a Hash to a strict, hexadecimal-encoded StrictByteString in constant time.
asciiByteStringToPasswordHash :: StrictByteString -> PasswordHashsel Sel.Hashing.Password Convert an ascii-encoded password hash to a PasswordHash This function does not perform ASCII validation.
hashByteString :: StrictByteString -> IO PasswordHashsel Sel.Hashing.Password Hash the password with the Argon2id algorithm and a set of pre-defined parameters. The hash is encoded in a human-readable format that includes:
- The result of a memory-hard, CPU-intensive hash function applied to the password;
- The automatically generated salt used for the previous computation;
- The other parameters required to verify the password, including the algorithm identifier, its version, opslimit, and memlimit.
hashByteStringWithParams :: Argon2Params -> Salt -> StrictByteString -> PasswordHashsel Sel.Hashing.Password Hash the password with the Argon2id algorithm. The hash is not encoded in human-readable format.
hexByteStringToSalt :: StrictByteString -> Maybe Saltsel Sel.Hashing.Password Convert a hexadecimal-encoded StrictByteString to a Salt. The input salt, once decoded from base16, must be of length cryptoPWHashSaltBytes.
passwordHashToByteString :: PasswordHash -> StrictByteStringsel Sel.Hashing.Password Convert a PasswordHash to a StrictByteString.