Appearance
Class: UtilsCrypto
Cryptography utilities: generation of unique identifiers.
Remarks
Accessible everywhere via k.Utils.Crypto. All methods are static.
Example
ts
const id = k.Utils.Crypto.uuidv4(); // "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d"Constructors
Constructor
ts
new UtilsCrypto(): UtilsCrypto;Returns
UtilsCrypto
Methods
uuidv4()
ts
static uuidv4(): string;Generates a random UUID v4 (universally unique identifier).
Returns
string
A UUID v4 as a string.
Example
ts
const sessionId = k.Utils.Crypto.uuidv4();