OSX hash
#1
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.
#2
Do not post hashes on these forums
#3
You don't get the same hash because you don't use the salt.
#4
also notice the salt is encoded in hex
#5
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.