mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #2278] Should --cost items be audited #1527
Labels
No labels
bug
core branch
documentation
enhancement
enhancement
fixed - pending verify
fuzz bug
good first issue
invalid
invalid
maintenance/cleanup
new cracking mode
new format
new tool
non-trivial
notes/external issues
portability
question
RFC / discussion
testing
WONTFIX
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
openwall/john#1527
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jfoug on GitHub (Sep 18, 2016).
Original GitHub issue: https://github.com/openwall/john/issues/2278
As I have found out, ,doing a comprehensive check of gpg, the -cost items do not always go from quicker to slower. Here is a grid showing speeds with a mix of all cost2/cost3 values The vertical grid is hash type, and the horizontal is encryption type. Both are in order by 'cost' numbers, but as can be seen,
Is there anything we can (or should) do to help normalize how cost works ? I am sure there are other formats which the --cost values do not line up with throughput.
@frank-dittrich commented on GitHub (Sep 19, 2016):
I wouldn't to that for different algorithms.
The sequence might be different on another hardware.
And if later on a new algorithm gets added, I wouldn't want to change numbers, since this might have an impact on existing .rec files.
Also, if later tuning or a newly discovered shortcut changes the performance, you can't change those numbers.
For iteration counts, yes, this should be done.
Also, if an algorithm has several cost parameters, the one which has most impact on performance should be listed first. (But that might also depend on hardware.)
@jfoug commented on GitHub (Sep 19, 2016):
This table is the number of hashes needed to produce the keys. So as can be seen, the largest variance in timings is due to width of the hash vs width of the required crypt key. There is also 'some' variance due to crypt type, but it is only seen in the faster hashes (md5, etc). As the hash type gets slower, it overtakes the loss of time for crypt. In crypt, the one that gives the strong 'impact' is blowfish, with it's nasty key setup. The other crypts really do not impact performance much. Now, once we get to faster keysetup (if we were to be able to move to SIMD), then the crypt overhead may play a much more important roll in overall throughput. But as can be seen with this table (in relation to the original table), the 1 limb vs 2 limb becomes very apparent.
Actually, this would be a better --cost than the crypt type. We could even have 3 cost values (to give bf a bit higher hit even though it is a 1 limb cost for all hash types).