Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
OSX hash
02-15-2012, 04:48 PM (This post was last modified: 02-15-2012 08:10 PM by Mem5.)
Post: #1
OSX hash
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.
Find all posts by this user
Quote this message in a reply
02-15-2012, 05:08 PM
Post: #2
RE: OSX hash
Do not post hashes on these forums
Find all posts by this user
Quote this message in a reply
02-15-2012, 07:11 PM
Post: #3
RE: OSX hash
You don't get the same hash because you don't use the salt.
Find all posts by this user
Quote this message in a reply
02-15-2012, 07:15 PM
Post: #4
RE: OSX hash
also notice the salt is encoded in hex
Visit this user's website Find all posts by this user
Quote this message in a reply
02-15-2012, 08:14 PM
Post: #5
RE: OSX hash
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.
Find all posts by this user
Quote this message in a reply
Post Reply