View Single Post
Old 05-28-2007, 08:59 AM   #3 (permalink)
Kaon
Forum Novice
 
Join Date: Jan 2005
Age: 25
Posts: 125
Send a message via MSN to Kaon
Default

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]).'-';
}
__________________
Kaon is offline   Reply With Quote