Show HN: Generate Passwords from Regex Constraints(gruhn.github.io)
gruhn.github.io
Show HN: Generate Passwords from Regex Constraints
https://gruhn.github.io/regex-utils/password-generator.html?constraints=%5E.%7B16%2C32%7D%24%0A%5E%5B%5Cx21-%5Cx7E%5D*%24%0A%5B0-9%5D%0A%5BA-Z%5D%0A%5Ba-z%5D
6 comments
Heh, cool concept. Could maybe add some interactive configuration common password gen tools have like choose length, characters used (upper, lower, numbers, symbols) so people not accustomed to regex can play with (and see how for each configuration the regex changes).
Your regex-utils library also interesting, especially the set operations part.
Your regex-utils library also interesting, especially the set operations part.
When I use the following constraints:
^.{6,8}$
[0-9]
[A-Z]
[a-z]
I get: F7o
d1A
𑐟Ku9
𑍞4𢗏Rw
I𦢺2r
I don't think those block chars should be there. Am I missing something?It picks characters from the whole unicode range. Those strings should indeed match all regex constraints. You can add a constraint like:
EDIT: no you're right, there is a bug. I would expect random unicode chars but not always the same box.
^[\x21-\x7E]*$
To only choose printable ASCII characters.EDIT: no you're right, there is a bug. I would expect random unicode chars but not always the same box.
Actually no again, I think the browser can just not render those.
Nice, wonder if this can integrated into password managers!
https://github.com/gruhn/regex-utils#comment-regex-using-com...