GeneratePassword (open)

Generate a password

Syntax

LOADLIB "wh::crypto.whlib";

STRING FUNCTION GeneratePassword(STRING base, INTEGER len, BOOLEAN mixed_case)

Parameters

STRING base

Initial characters in the password

INTEGER len

Number of random characters to add

BOOLEAN mixed_case

If TRUE, return digits, uppercase and lowercase characters, else return only digits and uppercase characters.

Return value

STRING

A encrypted password in STRING format