Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate Random String fails to create strong password #5123

Open
ESP4Ever opened this issue May 2, 2024 · 2 comments
Open

Generate Random String fails to create strong password #5123

ESP4Ever opened this issue May 2, 2024 · 2 comments

Comments

@ESP4Ever
Copy link

ESP4Ever commented May 2, 2024

Hello!

I'm not sure that it is a bug, maybe shall be RFF
When I'm using the subj command like "${pass} = Generate Random String 8-20 [LETTERS][NUMBERS]#*%-_.@!", it fails to create strong passwords from defined chars range because there is no way to make these ranges obligatory to include (numbers may be not included in generated strings)

@pekkaklarck
Copy link
Member

This keyword simply picks characters from the specified set, there's currently no way to configure that certain characters must always appear. We could enhance the keyword to make such configuration possible, but we first needed to design how it should work. Do you have any ideas?

For the record, I don't consider this limitation a bug. The keyword works exactly as designed, but it certainly could be enhanced to be even more powerful.

@ESP4Ever
Copy link
Author

ESP4Ever commented May 6, 2024

I see, thank you

Do you have any ideas?

Maybe to use the RegEx syntax or a simplified one, like ${pass} = Generate Random String 8-20 [LETTERS][NUMBERS:1,1][#:1,2][*%-_.@!]" where (:n,x) n= min number of occurrences, x= first allowed place of occurrence

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants