edgeport - v1.0.6
    Preparing search index...

    Function hi

    • PBKDF2 as SCRAM's Hi(str, salt, i): the salted-password derivation.

      Exposed for byte-exact known-answer tests against the RFC 5802 vectors.

      Parameters

      • password: Uint8Array

        The UTF-8 password bytes.

      • salt: Uint8Array

        The salt bytes (already base64-decoded).

      • iterations: number

        The iteration count.

      • hash: "SHA-256" | "SHA-1"

        The underlying hash ('SHA-1' or 'SHA-256').

      Returns Promise<Uint8Array<ArrayBufferLike>>

      The salted password (20 bytes for SHA-1, 32 for SHA-256).

      1.0.4