1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-07-23 06:58:31 +00:00

Merge pull request #4140 from PenguinKeeper7/Salt-UX-Fix

Improve salt length reporting in hashconfig
This commit is contained in:
hashcat-bot 2025-07-09 10:28:39 +02:00 committed by GitHub
commit 5605a5e172
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1020,7 +1020,7 @@ static void main_hashconfig_post (MAYBE_UNUSED hashcat_ctx_t *hashcat_ctx, MAYBE
if (hashconfig->is_salted == true) if (hashconfig->is_salted == true)
{ {
if (hashconfig->opti_type & OPTI_TYPE_RAW_HASH) if (hashconfig->opti_type & OPTI_TYPE_RAW_HASH || hashconfig->salt_type & SALT_TYPE_GENERIC)
{ {
event_log_info (hashcat_ctx, "Minimum salt length supported by kernel: %u", hashconfig->salt_min); event_log_info (hashcat_ctx, "Minimum salt length supported by kernel: %u", hashconfig->salt_min);
event_log_info (hashcat_ctx, "Maximum salt length supported by kernel: %u", hashconfig->salt_max); event_log_info (hashcat_ctx, "Maximum salt length supported by kernel: %u", hashconfig->salt_max);