Furthermore...
I don't know if this is the correct repository (or at least an up-to-date fork), but the code is here (https://github.com/berkus/usercake/blob/...cs.php#L81 ):
$salt . sha1($salt . $plainText);
This implies that the output format is $salt concatenated w/ the hash, which was generated as sha1 ($salt.$pass).
Therefore, the salt is at the beginning (25 chars), then comes the hash.
You just need to edit the format *from*:
$salt.$hash
into
$hash:$salt
(with the colon and of length 40:25 instead of 65 == 25+40)
Then you just need to have -m 120 and the hash/hashfile in the command line.
I don't know if this is the correct repository (or at least an up-to-date fork), but the code is here (https://github.com/berkus/usercake/blob/...cs.php#L81 ):
$salt . sha1($salt . $plainText);
This implies that the output format is $salt concatenated w/ the hash, which was generated as sha1 ($salt.$pass).
Therefore, the salt is at the beginning (25 chars), then comes the hash.
You just need to edit the format *from*:
$salt.$hash
into
$hash:$salt
(with the colon and of length 40:25 instead of 65 == 25+40)
Then you just need to have -m 120 and the hash/hashfile in the command line.