generatePassword

abstract fun generatePassword(length: Int, upperCase: Boolean, lowerCase: Boolean, special: Boolean, number: Boolean): String

Generates a random password.

Return

generated password.

Parameters

length

password length.

upperCase

true if 1 uppercase is required.

lowerCase

true if 1 lowercase is required.

special

true if 1 special character is required.

number

true if 1 numeric character is required.