Skip to content

Commit

Permalink
Fix condition checking characters belong to the expected charset
Browse files Browse the repository at this point in the history
  • Loading branch information
kimci86 committed Jan 22, 2024
1 parent 3e773f3 commit 94f5d59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/password.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ void Recovery::recursion(int i)
password.append(p.begin(), p.end());
password.erase(password.begin(), password.end() - length);

const bool isInCharset = std::all_of(password.begin(), password.end(), [this](char c) {
const bool isInCharset = std::all_of(password.begin(), password.end(), [this](unsigned char c) {
return std::binary_search(charset.begin(), charset.end(), c);
});

Expand Down

0 comments on commit 94f5d59

Please sign in to comment.