|
|
Message-ID: <CABob6iqCF=MFFrpebKbrs3Mhfxtgpx_0dHUBixVx0VR3kEJ7Fg@mail.gmail.com>
Date: Fri, 5 Aug 2011 02:36:44 +0200
From: Lukas Odzioba <lukas.odzioba@...il.com>
To: john-dev@...ts.openwall.com
Subject: SALT_SIZE
I've got a question what john does with SALT_SIZE constant in
fmt_main, and how it should looks.
In sha256/512 crypt salt looks like:
$5$salt(up to 16chars)$ciphertext
or
$5$rounds=(1000-999999999)$salt(up to 16chars)$ciphertext
It will be ok if my salt(char *ciphertext) return
(salt(upto16chars)+4Bytes int decoded rounds),and SALT_SIZE then would
be (16+4)?
Because john is comparing salts maybe just return everyting between
$5$ and $ciphertext adding rounds=DEFAULT if it is not present then:
$5$saltstring$ciphertext
$5$rounds=DEFAULT$saltstring$ciphertext
will be reckognized as the same salt, and SALT_SIZE should be
strlen("rounds=999999999")+16;
Lukas
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.