Skip to content

Function: salt()

salt(length): string

Defined in: hash.ts:7

Generates a random string of a specified length in base-36 (including digits and lowercase letters).

Parameters

length

number

The desired length of the random string.

Returns

string

  • A random base-36 string of the provided length.

Released under the MIT License.