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.

  1. authenticationTagFromHexByteString :: StrictByteString -> Either Text AuthenticationTag

    sel 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.

  2. authenticationTagToHexByteString :: AuthenticationTag -> StrictByteString

    sel Sel.HMAC.SHA512_256

    Convert an AuthenticationTag to a hexadecimal-encoded StrictByteString in constant time.

  3. unsafeAuthenticationKeyToHexByteString :: AuthenticationKey -> StrictByteString

    sel Sel.HMAC.SHA512_256

    Convert a 'AuthenticationKey to a hexadecimal-encoded StrictByteString in constant time. ⚠️ Be prudent as to where you store it!

  4. hashByteString :: Maybe HashKey -> StrictByteString -> Hash

    sel 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.

  5. hashToHexByteString :: Hash -> StrictByteString

    sel Sel.Hashing

    Convert a Hash to a strict, hexadecimal-encoded StrictByteString in constant time.

  6. asciiByteStringToPasswordHash :: StrictByteString -> PasswordHash

    sel Sel.Hashing.Password

    Convert an ascii-encoded password hash to a PasswordHash This function does not perform ASCII validation.

  7. hashByteString :: StrictByteString -> IO PasswordHash

    sel 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.
    Example output: $argon2id$v=19$m=262144,t=3,p=1$fpPdXj9mK7J4m…

  8. hashByteStringWithParams :: Argon2Params -> Salt -> StrictByteString -> PasswordHash

    sel Sel.Hashing.Password

    Hash the password with the Argon2id algorithm. The hash is not encoded in human-readable format.

  9. hexByteStringToSalt :: StrictByteString -> Maybe Salt

    sel Sel.Hashing.Password

    Convert a hexadecimal-encoded StrictByteString to a Salt. The input salt, once decoded from base16, must be of length cryptoPWHashSaltBytes.

  10. passwordHashToByteString :: PasswordHash -> StrictByteString

    sel Sel.Hashing.Password

    Convert a PasswordHash to a StrictByteString.

Page 102 of many | Previous | Next