Parameters
The desired length of the password (default: 20)
Whether to include special characters (default: True)
Returns
str: A secure random password string
Raises
ValueError: If length is too short to meet security requirements
Generate a secure random password
str: A secure random password string
ValueError: If length is too short to meet security requirements