Skip to content

Commit

Permalink
7z formats: Enable TrustPadding by default if not found in john.conf
Browse files Browse the repository at this point in the history
Fixes #5228
  • Loading branch information
solardiz committed Jul 6, 2024
1 parent 9926f3b commit 6961bf3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/7z_fmt_plug.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ static void init(struct fmt_main *self)
if (options.target_enc == UTF_8)
self->params.plaintext_length = MIN(125, 3 * PLAINTEXT_LENGTH);

if (cfg_get_bool(SECTION_FORMATS, "7z", "TrustPadding", 0))
if (cfg_get_bool(SECTION_FORMATS, "7z", "TrustPadding", 1))
sevenzip_trust_padding = 1;
}

Expand Down
2 changes: 1 addition & 1 deletion src/opencl_7z_fmt_plug.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ static void init(struct fmt_main *_self)
if (options.target_enc == UTF_8)
self->params.plaintext_length = MIN(125, 3 * PLAINTEXT_LENGTH);

if (cfg_get_bool(SECTION_FORMATS, "7z", "TrustPadding", 0))
if (cfg_get_bool(SECTION_FORMATS, "7z", "TrustPadding", 1))
sevenzip_trust_padding = 1;
}

Expand Down

0 comments on commit 6961bf3

Please sign in to comment.