Skip to content

Commit

Permalink
Add todo for more hash algos in weakcredential detector
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 704694485
  • Loading branch information
vpasdf authored and copybara-github committed Dec 10, 2024
1 parent 757d9a3 commit d6beb9a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions detector/weakcredentials/etcshadow/cracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ func NewPasswordCracker() Cracker {
}

func (c passwordCracker) Crack(ctx context.Context, hash string) (string, error) {
// TODO(b/383302694): Add more hash algos.
switch {
case strings.HasPrefix(hash, "$2"):
return c.bcryptCracker.Crack(ctx, hash)
Expand Down

0 comments on commit d6beb9a

Please sign in to comment.