Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPassword ¶
NewPassword generates a cryptographically secure random password.
The password consists of a mix of lowercase letters, uppercase letters, numbers, and symbols. The default length is 16 characters. You can optionally provide a `length` argument to specify a different length.
If the provided length is less than or equal to 0, the default length of 16 is used.
This function uses the `crypto/rand` package to ensure a high level of randomness and security, suitable for generating passwords
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.