Skip to contents

Creates a random password of specified length using letters, numbers, and special characters.

Usage

generate_password(length = 12, pattern = "!@#$%^&*")

Arguments

length

Integer. Length of the password to generate. Defaults to 12.

pattern

Character string. characters to include in the password.

Value

Character string containing the generated password