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

Add possibility to interrupt and continue at a later time. #184

Open
filipeestima opened this issue Sep 9, 2024 · 0 comments
Open

Add possibility to interrupt and continue at a later time. #184

filipeestima opened this issue Sep 9, 2024 · 0 comments

Comments

@filipeestima
Copy link

When the user presses Ctrl+C, it could show the last generated password, so the user can save it for use at a later time, when it's convenient. In order for this to work, you would need to implement a new option "-s or --startingPassword" and check if its use is possible, according to these parameters:

  • Number of characters must be between minPasswordLen and maxPasswordLen;
  • All characters must belong to the selected charset, being predefined or custom;
  • If --passwordDictionary was used, then you need to find the password in there to continue, avoiding an endless loop. This may account for user error, when s/he started the search using one dictionary and continued later with a different one. Anyway, -c and -p should be mutually exclusive.

These checks are the important ones, to avoid making the software stuck in an endless loop. I think it would also be nice to use in scenarios where the user knows that the password starts with a certain string. Another possibility is to break the search space among various machines, each one at a different starting point.

@agourlay agourlay changed the title Suggestion 3: Add possibility to interrupt and continue at a later time. Add possibility to interrupt and continue at a later time. Sep 28, 2024
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