Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Tue, 2 Jul 2019 19:51:30 +0200
From: Solar Designer <solar@...nwall.com>
To: john-users@...ts.openwall.com
Subject: Re: John rules with utf8 chars?

Hello Peter,

On Tue, Jul 02, 2019 at 07:34:06PM +0200, Peter Farge wrote:
> Is it possible to use utf8 in the rule definition?

Yes, but the rules preprocessor and the rules themselves work on
individual bytes, so you shouldn't list multi-byte characters in a
preprocessor expression (the square brackets in your example) nor in
commands that expect individual characters (but the "A" commands you use
here will happily accept what they think are multi-character strings).

You can do:

[List.Rules:Currency]
Az"\xc2\xa3"
Az"\xe2\x82\xac"

or you can just type those characters in like you did if you're working
with UTF-8 directly, like most people do these days.  You just can't
combine these two rules into one line with the preprocessor.

Alexander

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.