-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
Description
Current behavior
The application exhibits two distinct issues depending on the "Exclude characters" input:
Total Crash: When providing a long list of specific characters to exclude (e.g., @, :, /, %, &, ?, #, +, !, $, ^, *), the application crashes immediately upon clicking "Generate password(s)".
Incorrect Output: When using a shorter exclusion filter such as ^, *, the generator fails to produce a random string and instead returns only strings of asterisks (*) regardless of the configured password length.
How to reproduce it (as minimally and precisely as possible)
Scenario 1: App Crash
-
Open the Password Generator tool. -
Set Password Length to 36. -
Enable all character toggles (Lowercase, Uppercase, Digits, Special Characters). -
In the "Exclude the following characters..." field, paste: @, :, /, %, &, ?, #, +, !, $, ^, * -
Click "Generate password(s)". -
The app closes/crashes instantly.
Scenario 2: Logic Failure (Asterisk Loop)
- Use the same settings as above.
- Change the exclusion field to: ^, *
- Click "Generate password(s)".
- The output field fills with lines containing only ************************************.
Expected behavior
The app should handle excluded characters without crashing, even if the list is long.
If the exclusion list is valid, the generator should return a random string of characters that are not in the exclusion list, while still respecting the requested password length.
If an exclusion list makes it impossible to generate a password (e.g., excluding all possible characters), the app should show a validation error instead of crashing or returning a broken string.
Screenshots
Workaround
No response
Affected platforms
Windows
Affected DevToys kind
DevToys (app with GUI)
DevToys Version
Versão 1.0.14.0 | X64 | RELEASE | 3ad0ff2 | 3ad0ff2
Relevant Assets/Logs
No response
Reactions are currently unavailable