Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Wed, 15 Feb 2012 09:28:34 -0600
From: "jfoug" <>
To: <>
Subject: RE: sha1 + hex salt

I really wonder if the description of this crypt is wrong.  I bet this is
simply a fixed 16 byte null buffer, that has the password overwrite the
first part of this buffer, and then is crypted with SHA1.  This is similar
to how cisco pix works (but pix used md5).  I.e., we are seeing a fixed
sized null padded password buffer.

Thus, it may be better for this crypt, to do this type pseudo code:

clean_buffer   (whole buffer is NULL).
set_length_16  (I do not think this function exists in dynamic right now)

That way, it would not matter at all, if the password was 8 bytes, 4 bytes,
or 14 bytes.  As long as the layout is what I expect it to be.

But for now, I am digging into why the CONST1 is not working.  The code you
show below, appears to be correct for the given hash.


>-----Original Message-----
>From: jfoug []
>Sent: Wednesday, February 15, 2012 9:18 AM
>Subject: RE: [john-users] sha1 + hex salt
>I have been looking at this exact same thing.  It 'should' work.  It may
>that I do not send the const values to the demangler code.  I know I did
>salts, etc.  I just have to look.  I was sure I sent the consts there,
>because I did this for the PO format (uses 0xF7's or something like
>I will see what is wrong. It 'could' be that there is some get length
>C's string functions, that is busted, thus the const1 has a length of 0.
>>From: Solar Designer []
>>The following would work (to be placed in john.conf) if we could encode
>>a zero byte in a string:
>>Unfortunately, this setting of CONST1 does not appear to work right (so
>>this format fails self-test).
>>Jim - is this something you'd enhance in a future revision of your
>>Alternatively/additionally, how about supporting hex-encoded salts?

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.