@qualithm/kafka-client - v0.1.6
    Preparing search index...

    Function createScramAuthenticator

    • Create a SASL/SCRAM authenticator.

      SCRAM is a multi-step challenge–response mechanism:

      1. Client sends client-first message (nonce, username)
      2. Server responds with server-first message (salt, iterations, combined nonce)
      3. Client sends client-final message (proof)
      4. Server responds with server-final message (verifier)

      Uses Web Crypto API for PBKDF2 and HMAC operations.

      Parameters

      • config: SaslConfig

        SASL configuration with username and password.

      • algorithm: ScramAlgorithm

        The SCRAM hash algorithm to use.

      Returns SaslAuthenticator