Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <016b01cc486e$02727640$075762c0$@net>
Date: Fri, 22 Jul 2011 07:51:00 -0500
From: "jfoug" <jfoug@....net>
To: <john-dev@...ts.openwall.com>
Subject: RE: ISO-8859-1 casing (experimental)

>-Original Message- From: magnum:

>Why is it called ISO5998_1?

It is not any more, typing error, then cut/paste.

NOTE, I have redone things fully, removing the -utf8 switch and the new one,
and replace it with --charset=value with value being utf8, utf-8 (any case),
ansi, iso8859-1, 8859-1 (any case) as being acceptable values.  There are
only 2 final values set, but any of those will 'work'.  I also changed
--create-charset=fname to --create-incremental=fname (and tried to change
the usage of charset in the documentation to 'follow'), to avoid confusion.


I will try to get this patch out this weekend.

>
>+       if (options.flags & FLG_ISO5998_1) {
>+               conv_tolower = rules_init_conv(CHARS_UPPER
>CHARS_UPPER_8859_1, CHARS_LOWER CHARS_LOWER_8859_1);
>+               conv_toupper = rules_init_conv(CHARS_LOWER
>CHARS_LOWER_8859_1, CHARS_UPPER CHARS_UPPER_8859_1);
>+       } else {
>+               conv_tolower = rules_init_conv(CHARS_UPPER,
>CHARS_LOWER);
>+               conv_toupper = rules_init_conv(CHARS_LOWER,
>CHARS_UPPER);
>+       }
>
>If using an enum instead, things like the above would be a switch
>statement, right?

Correct, but right now, it is 'raw' or iso8859-1 only.

>The whole thing looks pleasantly simple. I like it! It could be improved
>to affect all uc/lc stuff within formats (I think LM, NETLM, NETHALFLM
>and sapB are affected). These could use a shared --charset aware uc (or
>lc) function. Once they do, adding a codepage to that shared function
>would affect all applicable formats. But we'd have to beware of
>performance drops.

That was the plan.  This is just sticking a toe in the water, to test it's
temp.

Jim.

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.