Skip to content

Token Generation (token_gen.nvgt)

Token generation include

Allows you to easily generate random strings of characters of any length.

Functions

generate_token

Generates a string of random characters, or token.

string generate_token(int token_length)

Arguments:

returns:

String: a random token.

Remarks:

The characters used to generate the token are: "1234567890abcdefthijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".

Example:

#include "token_gen.nvgt"
void main() {
	alert("Info", "Your token is: " + generate_token(10));
}