Hi !

I work with someone who use ASP :-(( ...
Is someone could translate this function to ASP ??
I don't think it's hard, but when you don't know ASP...

function encrypt($str)
{
global $STRCRYPT;

$i = strlen($str);
$newstr="";
for ($j=0;$j<$i;$j++)
{
$car = substr($str,$j,1);
$car = ord($car);
$car = $car + ord(substr($STRCRYPT,$j,1));
$car = sprintf("%03d",$car);
$newstr.=$car;
}
return $newstr;
}



----------------------------------------------------------------
EuroVox
4, place Félix Eboue
75583 Paris Cedex 12
Tel : 01 44 67 05 05
Fax : 01 44 67 05 19
Web : http://www.eurovox.fr
----------------------------------------------------------------


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to