Generates a random initialization vector (IV) for encryption.
The generated initialization vector as a base64-encoded string.
const iv = generateIv();console.log(iv); // Random base64-encoded initialization vector Copy
const iv = generateIv();console.log(iv); // Random base64-encoded initialization vector
Generated using TypeDoc
Generates a random initialization vector (IV) for encryption.