randomPassword
def randomPassword = { length = 10 ->
xxx
}
Generates a random password of a specified length that contains uppercase and lowercase letters, digits, and special characters. Default length is 10.
Example: 10-Character Password
"io_password": "randomPassword()"
Example: 15-Character Password
"io_password": "randomPassword(15)"
For more information:
Was this helpful?