[GH-ISSUE #668] --list=format-[all-]details should call format's init() #322

Closed
opened 2026-10-14 03:01:20 +07:00 by bsakaguchi · 9 comments
Owner

Originally created by @magnumripper on GitHub (Jun 23, 2014).
Original GitHub issue: https://github.com/openwall/john/issues/668

$ ../run/john --form:nt --list=format-all-details | grep bytes
Max. password length in bytes        27

$ ../run/john --form:nt --list=format-all-details --enc:utf8 | grep bytes 
Max. password length in bytes        27

The latter case should show 81.

Originally created by @magnumripper on GitHub (Jun 23, 2014). Original GitHub issue: https://github.com/openwall/john/issues/668 ``` $ ../run/john --form:nt --list=format-all-details | grep bytes Max. password length in bytes 27 $ ../run/john --form:nt --list=format-all-details --enc:utf8 | grep bytes Max. password length in bytes 27 ``` The latter case should show 81.
bsakaguchi 2026-10-14 03:01:20 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@magnumripper commented on GitHub (Jun 23, 2014):

@frank-dittrich feel free to fix this, I'm concentrating on SAP F/G now

<!-- gh-comment-id:46870573 --> @magnumripper commented on GitHub (Jun 23, 2014): @frank-dittrich feel free to fix this, I'm concentrating on SAP F/G now
Author
Owner

@frank-dittrich commented on GitHub (Jun 23, 2014):

Fixed in the third commit (github.com/frank-dittrich/JohnTheRipper@6b2b7dcb3f) of this pull request:
https://github.com/magnumripper/JohnTheRipper/pull/669

<!-- gh-comment-id:46885192 --> @frank-dittrich commented on GitHub (Jun 23, 2014): Fixed in the third commit (https://github.com/frank-dittrich/JohnTheRipper/commit/6b2b7dcb3f06dbb65abf54dd536554dc537dacb6) of this pull request: https://github.com/magnumripper/JohnTheRipper/pull/669
Author
Owner

@frank-dittrich commented on GitHub (Jun 23, 2014):

@jfoug I checked the diff of default output and --encoding=utf-8 output.
No changes for most format, some formats increase max. length to 3* the ansi max. length (or 125), but dynamic-1400 reports max. length 0for utf-8:

$ ./john --list=format-all-details --format=dynamic_1400 --encoding=utf-8 
Format label                         dynamic_1400
Max. password length in bytes        0

Currently only in my repository, after magnum merged this commit, you'll see it in bleeding-jumbo as well.

<!-- gh-comment-id:46899162 --> @frank-dittrich commented on GitHub (Jun 23, 2014): @jfoug I checked the diff of default output and --encoding=utf-8 output. No changes for most format, some formats increase max. length to 3\* the ansi max. length (or 125), but dynamic-1400 reports max. length 0for utf-8: ``` $ ./john --list=format-all-details --format=dynamic_1400 --encoding=utf-8 Format label dynamic_1400 Max. password length in bytes 0 ``` Currently only in my repository, after magnum merged this commit, you'll see it in bleeding-jumbo as well.
Author
Owner

@magnumripper commented on GitHub (Jun 23, 2014):

Currently only in my repository, after magnum merged this commit, you'll see it in bleeding-jumbo as well.

...done now

<!-- gh-comment-id:46899507 --> @magnumripper commented on GitHub (Jun 23, 2014): > Currently only in my repository, after magnum merged this commit, you'll see it in bleeding-jumbo as well. ...done now
Author
Owner

@frank-dittrich commented on GitHub (Jun 23, 2014):

May be it is OK to report 0, if

$ ./john --test --format=dynamic_1400 --encoding=utf-8  
Will run 8 OpenMP threads
The dynamic_1400 format does not yet support encodings other than ISO-8859-1

I don't know.

<!-- gh-comment-id:46901298 --> @frank-dittrich commented on GitHub (Jun 23, 2014): May be it is OK to report 0, if ``` $ ./john --test --format=dynamic_1400 --encoding=utf-8 Will run 8 OpenMP threads The dynamic_1400 format does not yet support encodings other than ISO-8859-1 ``` I don't know.
Author
Owner

@frank-dittrich commented on GitHub (Jun 23, 2014):

OTOH:

$ ./john --list=format-tests --format=dynamic_1400 --encoding=utf-8 
dynamic_1400    0   $dynamic_1400$e8f97fba9104d1ea5047948e6dfb67facd9f5b73  password
dynamic_1400    1   $dynamic_1400$e8f97fba9104d1ea5047948e6dfb67facd9f5b73  password
dynamic_1400    2   $dynamic_1400$e8f97fba9104d1ea5047948e6dfb67facd9f5b73  password
dynamic_1400    3   $dynamic_1400$e8f97fba9104d1ea5047948e6dfb67facd9f5b73  password
dynamic_1400    4   $dynamic_1400$e8f97fba9104d1ea5047948e6dfb67facd9f5b73  password
dynamic_1400    5   $dynamic_1400$e8f97fba9104d1ea5047948e6dfb67facd9f5b73  password
dynamic_1400    6   $dynamic_1400$e8f97fba9104d1ea5047948e6dfb67facd9f5b73  password
dynamic_1400    7   $dynamic_1400$e8f97fba9104d1ea5047948e6dfb67facd9f5b73  password
dynamic_1400    8   $dynamic_1400$e8f97fba9104d1ea5047948e6dfb67facd9f5b73  password
dynamic_1400    9   $dynamic_1400$e8f97fba9104d1ea5047948e6dfb67facd9f5b73  password
dynamic_1400    10  $dynamic_1400$e8f97fba9104d1ea5047948e6dfb67facd9f5b73  password
dynamic_1400    11  $dynamic_1400$e8f97fba9104d1ea5047948e6dfb67facd9f5b73  password
dynamic_1400    12  $dynamic_1400$e8f97fba9104d1ea5047948e6dfb67facd9f5b73  password
dynamic_1400    13  $dynamic_1400$e8f97fba9104d1ea5047948e6dfb67facd9f5b73  password
dynamic_1400    14  $dynamic_1400$e8f97fba9104d1ea5047948e6dfb67facd9f5b73  password
dynamic_1400    15  $dynamic_1400$e8f97fba9104d1ea5047948e6dfb67facd9f5b73  password
dynamic_1400    16  $dynamic_1400$e8f97fba9104d1ea5047948e6dfb67facd9f5b73  password
dynamic_1400    17  $dynamic_1400$e8f97fba9104d1ea5047948e6dfb67facd9f5b73  password
dynamic_1400    18  $dynamic_1400$e8f97fba9104d1ea5047948e6dfb67facd9f5b73  password
dynamic_1400    19  $dynamic_1400$e8f97fba9104d1ea5047948e6dfb67facd9f5b73  password
dynamic_1400    20  $dynamic_1400$e8f97fba9104d1ea5047948e6dfb67facd9f5b73  password
dynamic_1400    21  $dynamic_1400$e8f97fba9104d1ea5047948e6dfb67facd9f5b73  password
dynamic_1400    22  $dynamic_1400$e8f97fba9104d1ea5047948e6dfb67facd9f5b73  password
dynamic_1400    23  $dynamic_1400$e8f97fba9104d1ea5047948e6dfb67facd9f5b73  password
<!-- gh-comment-id:46901883 --> @frank-dittrich commented on GitHub (Jun 23, 2014): OTOH: ``` $ ./john --list=format-tests --format=dynamic_1400 --encoding=utf-8 dynamic_1400 0 $dynamic_1400$e8f97fba9104d1ea5047948e6dfb67facd9f5b73 password dynamic_1400 1 $dynamic_1400$e8f97fba9104d1ea5047948e6dfb67facd9f5b73 password dynamic_1400 2 $dynamic_1400$e8f97fba9104d1ea5047948e6dfb67facd9f5b73 password dynamic_1400 3 $dynamic_1400$e8f97fba9104d1ea5047948e6dfb67facd9f5b73 password dynamic_1400 4 $dynamic_1400$e8f97fba9104d1ea5047948e6dfb67facd9f5b73 password dynamic_1400 5 $dynamic_1400$e8f97fba9104d1ea5047948e6dfb67facd9f5b73 password dynamic_1400 6 $dynamic_1400$e8f97fba9104d1ea5047948e6dfb67facd9f5b73 password dynamic_1400 7 $dynamic_1400$e8f97fba9104d1ea5047948e6dfb67facd9f5b73 password dynamic_1400 8 $dynamic_1400$e8f97fba9104d1ea5047948e6dfb67facd9f5b73 password dynamic_1400 9 $dynamic_1400$e8f97fba9104d1ea5047948e6dfb67facd9f5b73 password dynamic_1400 10 $dynamic_1400$e8f97fba9104d1ea5047948e6dfb67facd9f5b73 password dynamic_1400 11 $dynamic_1400$e8f97fba9104d1ea5047948e6dfb67facd9f5b73 password dynamic_1400 12 $dynamic_1400$e8f97fba9104d1ea5047948e6dfb67facd9f5b73 password dynamic_1400 13 $dynamic_1400$e8f97fba9104d1ea5047948e6dfb67facd9f5b73 password dynamic_1400 14 $dynamic_1400$e8f97fba9104d1ea5047948e6dfb67facd9f5b73 password dynamic_1400 15 $dynamic_1400$e8f97fba9104d1ea5047948e6dfb67facd9f5b73 password dynamic_1400 16 $dynamic_1400$e8f97fba9104d1ea5047948e6dfb67facd9f5b73 password dynamic_1400 17 $dynamic_1400$e8f97fba9104d1ea5047948e6dfb67facd9f5b73 password dynamic_1400 18 $dynamic_1400$e8f97fba9104d1ea5047948e6dfb67facd9f5b73 password dynamic_1400 19 $dynamic_1400$e8f97fba9104d1ea5047948e6dfb67facd9f5b73 password dynamic_1400 20 $dynamic_1400$e8f97fba9104d1ea5047948e6dfb67facd9f5b73 password dynamic_1400 21 $dynamic_1400$e8f97fba9104d1ea5047948e6dfb67facd9f5b73 password dynamic_1400 22 $dynamic_1400$e8f97fba9104d1ea5047948e6dfb67facd9f5b73 password dynamic_1400 23 $dynamic_1400$e8f97fba9104d1ea5047948e6dfb67facd9f5b73 password ```
Author
Owner

@jfoug commented on GitHub (Jun 23, 2014):

Please check out eb3d595

<!-- gh-comment-id:46902388 --> @jfoug commented on GitHub (Jun 23, 2014): Please check out eb3d595
Author
Owner

@jfoug commented on GitHub (Jun 23, 2014):

NOTE, I really hate having password + salt len > 55 (or greater than flat), since dynamic is most likely using that knowledge to properly avoid overflow issues. I bet if we add -utf8 (or whatever the encoding is) for dyna formats, that we will start failing in test suite (and in real runtime), with overflows.

<!-- gh-comment-id:46902610 --> @jfoug commented on GitHub (Jun 23, 2014): NOTE, I really hate having password + salt len > 55 (or greater than flat), since dynamic is most likely using that knowledge to properly avoid overflow issues. I bet if we add -utf8 (or whatever the encoding is) for dyna formats, that we will start failing in test suite (and in real runtime), with overflows.
Author
Owner

@magnumripper commented on GitHub (Jun 23, 2014):

This is closed - any other issues to their own issues please

<!-- gh-comment-id:46903234 --> @magnumripper commented on GitHub (Jun 23, 2014): This is closed - any other issues to their own issues please
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#322
No description provided.