you're right, I found this this morning
Works fine
Just an example of script for testing (working, but it's not really good

) :
Code:
$tocrypt = 'test';
$crypted = sha1($tocrypt, true);
$crypted_array = array();
echo $tocrypt.' => '.$crypted.'<br />';
for( $i=0; $i<strlen($crypted); ++$i) {
$crypted_array[$i] = $crypted[$i];
}
for( $i=0; $i<count($crypted_array); ++$i) {
echo bin2hex($crypted_array[$i]).'-';
}