generateVerificationCode
Generates a random verification code string of specified length, with optional custom charset and ability to exclude ambiguous characters.
len
: Length of code (default: 4)options
: Optional configuration
charset
: Custom character set (default: a-zA-Z0-9)excludeConfusing
: Whether to exclude 0,O,1,l (default: true)Returns randomly generated verification code string.