hashcat Forum
OSX hash - Printable Version

+- hashcat Forum (https://hashcat.net/forum)
+-- Forum: Deprecated; Previous versions (https://hashcat.net/forum/forum-29.html)
+--- Forum: General Help (https://hashcat.net/forum/forum-8.html)
+--- Thread: OSX hash (/thread-928.html)



OSX hash - Mem5 - 02-15-2012

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.


RE: OSX hash - radix - 02-15-2012

Do not post hashes on these forums


RE: OSX hash - mastercracker - 02-15-2012

You don't get the same hash because you don't use the salt.


RE: OSX hash - atom - 02-15-2012

also notice the salt is encoded in hex


RE: OSX hash - Mem5 - 02-15-2012

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.