hashcat Forum

Full Version: OSX hash
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi guys,

I don't know where to post my question so I hope it is OK here.
My question deals about OSX hashes.
I read that a OSX hash is a salted SHA1 (salt = first 8 chars)

Code:
OSX_hash : <removed>
salt : <removed>
sha1 : <removed>

oclhashcat gives me "password" as clear.
I would like now to generate the hash corresponding to this plain text, just to double-check.

But if a do echo -n password | sha1sum it does not give me the expected hash.

How can I generate an OSX hash when knowing the clear ?

Thank you.
Do not post hashes on these forums
You don't get the same hash because you don't use the salt.
also notice the salt is encoded in hex
Sorry for the hashes.

Quote:You don't get the same hash because you don't use the salt.
Quote:also notice the salt is encoded in hex

So I did :

$salt_as_string = hex2string($salt);

But
Code:
SHA1($salt_as_string, "password")
do not work better.