function getencrypt($txt,$cle)
{
srand((double)microtime()*1000000);
$getencrypt_key = md5(rand(0,32000));
$ctr=0;
$tmp = "";
for ($i=0;$i<strlen($txt);$i++)
{
if ($ctr==strlen($getencrypt_key))
$ctr=0;
$aff1 = substr($getencrypt_key,$ctr,1);
$tmp.= $aff1.(substr($txt,$i,1) ^ $aff1);
$ctr++;
}
$ctr=0;
$code="";
for ($i=0;$i<strlen($tmp);$i++)
{
if ($ctr==strlen($cle))
$ctr=0;
$code.=(substr($tmp,$i,1)) ^ (substr($cle,$ctr,1));
$ctr++;
}
return($code);
}