UNPKG

@skeet-framework/utils

Version:

Skeet Framework Plugin - Utils

12 lines (11 loc) 367 B
/** * Generates a random salt for key derivation. * * @param bytes - The number of bytes for the generated salt. Default is 16 bytes. * @returns The generated salt as a hexadecimal string. * * @example * const salt = generateRandomSalt(); * console.log(salt); // Random hexadecimal salt */ export declare function generateRandomSalt(bytes?: number): string;