Generates a random salt for key derivation.
The number of bytes for the generated salt. Default is 16 bytes.
The generated salt as a hexadecimal string.
const salt = generateRandomSalt();console.log(salt); // Random hexadecimal salt Copy
const salt = generateRandomSalt();console.log(salt); // Random hexadecimal salt
Generated using TypeDoc
Generates a random salt for key derivation.