@salvobee/crypto-vault
    Preparing search index...

    Function deriveKeyFromPassphrase

    • Derive an AES-GCM key from a textual passphrase using PBKDF2-SHA256.

      Parameters

      • passphrase: string

        The passphrase to derive the key from.

      • saltU8: Uint8Array

        Salt bytes used during derivation (must match when re-deriving).

      • iterations: number = PBKDF2_ITERATIONS

        Optional iteration count (defaults to PBKDF2_ITERATIONS).

      Returns Promise<CryptoKey>

      The derived AES-GCM CryptoKey.