Skip to content

Commit

Permalink
Merge pull request hashcat#3879 from PenguinKeeper7/base-58-fix
Browse files Browse the repository at this point in the history
Fix base58 charset check
  • Loading branch information
jsteube authored Sep 21, 2023
2 parents 302dab6 + 4ea4374 commit a46c9cb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions OpenCL/inc_common.cl
Original file line number Diff line number Diff line change
Expand Up @@ -2815,6 +2815,11 @@ DECLSPEC int is_valid_base58_8 (const u8 v)
if ((v > (u8) '9') && (v < (u8) 'A')) return 0;
if ((v > (u8) 'Z') && (v < (u8) 'a')) return 0;

// https://github.com/hashcat/hashcat/issues/3878
if (v == 'O') return 0;
if (v == 'I') return 0;
if (v == 'l') return 0;

return 1;
}

Expand Down

0 comments on commit a46c9cb

Please sign in to comment.