Function generateIv

  • Generates a random initialization vector (IV) for encryption.

    Returns string

    The generated initialization vector as a base64-encoded string.

    Example

    const iv = generateIv();
    console.log(iv); // Random base64-encoded initialization vector

Generated using TypeDoc