[GH-ISSUE #741] Wrong default order for raw-SHA0 #379

Closed
opened 2026-10-14 03:03:59 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @jfoug on GitHub (Sep 14, 2014).
Original GitHub issue: https://github.com/openwall/john/issues/741

$ ./john in
Warning: detected hash type "Raw-SHA", but the string is also recognized as "Raw-SHA1"
Use the "--format=Raw-SHA1" option to force loading these as that type instead
Warning: detected hash type "Raw-SHA", but the string is also recognized as "Raw-SHA1-Linkedin"
Use the "--format=Raw-SHA1-Linkedin" option to force loading these as that type instead
Warning: detected hash type "Raw-SHA", but the string is also recognized as "ripemd-160"
Use the "--format=ripemd-160" option to force loading these as that type instead
Warning: detected hash type "Raw-SHA", but the string is also recognized as "Raw-SHA1-ng"
Use the "--format=Raw-SHA1-ng" option to force loading these as that type instead
Loaded 1 password hash (Raw-SHA, "SHA-0" [SHA 32/32])
Press 'q' or Ctrl-C to abort, almost any other key for status
0g 0:00:00:07 3/3 0g/s 25190p/s 25190c/s 25190C/s samanna1
Session aborted

I think raw-sha1 should be first in order, do others not agree. raw-sha0 is simply not a hash seen in the wild. No one uses it, it's broken. It is very hard to even find an implementation of it.

Originally created by @jfoug on GitHub (Sep 14, 2014). Original GitHub issue: https://github.com/openwall/john/issues/741 $ ./john in Warning: detected hash type "Raw-SHA", but the string is also recognized as "Raw-SHA1" Use the "--format=Raw-SHA1" option to force loading these as that type instead Warning: detected hash type "Raw-SHA", but the string is also recognized as "Raw-SHA1-Linkedin" Use the "--format=Raw-SHA1-Linkedin" option to force loading these as that type instead Warning: detected hash type "Raw-SHA", but the string is also recognized as "ripemd-160" Use the "--format=ripemd-160" option to force loading these as that type instead Warning: detected hash type "Raw-SHA", but the string is also recognized as "Raw-SHA1-ng" Use the "--format=Raw-SHA1-ng" option to force loading these as that type instead Loaded 1 password hash (Raw-SHA, "SHA-0" [SHA 32/32]) Press 'q' or Ctrl-C to abort, almost any other key for status 0g 0:00:00:07 3/3 0g/s 25190p/s 25190c/s 25190C/s samanna1 Session aborted I think raw-sha1 should be first in order, do others not agree. raw-sha0 is simply not a hash seen in the wild. No one uses it, it's broken. It is very hard to even find an implementation of it.
bsakaguchi 2026-10-14 03:03:59 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@kholia commented on GitHub (Sep 15, 2014):

Agreed 👍

<!-- gh-comment-id:55558689 --> @kholia commented on GitHub (Sep 15, 2014): Agreed :+1:
Author
Owner

@magnumripper commented on GitHub (Sep 15, 2014):

This was caused by latest plugin scheme change, where some previously hard coded formats became plugs. Sort order is fmt_struct name (ignoring case) so it's easy to tweak.

<!-- gh-comment-id:55559336 --> @magnumripper commented on GitHub (Sep 15, 2014): This was caused by latest plugin scheme change, where some previously hard coded formats became plugs. Sort order is fmt_struct name (ignoring case) so it's easy to tweak.
Author
Owner

@magnumripper commented on GitHub (Sep 15, 2014):

BTW while the usage blob of john is sorted by format label, you can look at the output of --list=formats (which should resemble fmt_registers.h) to verify cases like this.

Oh, and GPU formats are always sorted separately and placed after CPU ones.

<!-- gh-comment-id:55559622 --> @magnumripper commented on GitHub (Sep 15, 2014): BTW while the usage blob of john is sorted by format label, you can look at the output of `--list=formats` (which should resemble fmt_registers.h) to verify cases like this. Oh, and GPU formats are always sorted separately and placed after CPU ones.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
openwall/john#379
No description provided.