$pw = 'toto'; 
// le sel correspond a une chaine d'initiation de l'algorithme de cryptage
// DES standard le sel a 2 characteres
// method de code pour les fichiers .htpasswd
$sel="L7";
echo crypt($pw,$sel).'
'; 
// DES etendu le sel a 9 characteres
$sel='123456789';
echo crypt($pw,$sel).'
';
// MD5
echo crypt($pw,'$1$'.$sel.'$').'
';
//
$sel='123456789abcef';
echo crypt($pw,'$2$'.$sel).'
';
?>