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

Allow fixed length password with variable word lengths #27

Open
cdslashetc opened this issue Sep 3, 2016 · 0 comments
Open

Allow fixed length password with variable word lengths #27

cdslashetc opened this issue Sep 3, 2016 · 0 comments

Comments

@cdslashetc
Copy link

I wish there was a way to use potentially different length words to generate a fixed-length password. Say for example you request 16-characters worth of words that might be 3 words of length 5 + 4 + 7 or 3 words of length 6 + 6 + 4. The lazy way would just be to throw away generated passwords that are too long until enough of the required length are produced, but may take longer to get the results. I just installed hsxkpasswd from source and I'm working on a lazy implementation in shell right now.

Bonus would be potentially different number of words like 2 words or 4 words but adding up to the same number of characters from words. Programming wise, might be subtracted from a count until the required number of characters from words was satisfied. Bonus bonus: words must still be within minimum length, might have to generate then throw it out if the last word is going to be too short, or try a shorter 2nd to last word for example.

The rationale is that the position of separators would be less predictable, which would make using rules to crack the generated passwords less effective vs having a certain number of words all the same length.

I have tried using rules that make words of variable lengths but had to click "Generate" multiple times because the generated batch exceeds the length restriction of the site they will be used for, then end up counting characters to make sure.

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

1 participant