PHP SHA1 Calculez le hachage SHA1 d'une chaîne
<?php
$str = 'apple';
if (sha1($str) === 'd0be2dc421be4fcd0172e5afceea3970e2f3d940') {
echo "Would you like a green or red apple?";
}
?>
SAMER SAEID