New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add generic pbkdf2-hmac-sha1 format #453

Closed
magnumripper opened this Issue Jan 3, 2014 · 1 comment

Comments

Projects
None yet
1 participant
@magnumripper
Owner

magnumripper commented Jan 3, 2014

Support hex encoding and variable number of rounds and output length.

We could use this output format:

$pbkdf2-hmac-sha1$iterations.salt.hash

Output length is not specified in a field but read from the hash. So it is part of the salt struct.

Example usage:
http://hashcat.net/forum/thread-2892-post-17493.html

IOS7 Restrictions password
From com.apple.restrictionspassword.plist:

    <key>RestrictionsPasswordKey</key>
    <data>
    J94ZcXHm1J/F9Vye8GwNh1HNclA=
    </data>
    <key>RestrictionsPasswordSalt</key>
    <data>
    /RHN4A==
    </data>

algo is pbkdf2-hmac-sha1 with an iterations count of 1000 and output length 20. Password for the above is 3956
Output from ios7rest2john for the above hash should be:

$pbkdf2-hmac-sha1$1000.fd11cde0.27de197171e6d49fc5f55c9ef06c0d8751cd7250

@ghost ghost assigned magnumripper Jan 5, 2014

@magnumripper

This comment has been minimized.

Show comment
Hide comment
@magnumripper

magnumripper Jan 5, 2014

Owner

First version committed in 5bac56f (see also #465)

Owner

magnumripper commented Jan 5, 2014

First version committed in 5bac56f (see also #465)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment