Cod: Selectaţi tot
public Encrypt(string[])
{
for(new x=0; x < strlen(string); x++)
{
string[x] += (3^x) * (x % 15);
if(string[x] > (0xff))
{
string[x] -= 256;
}
}
return 1;
}
iar ca sa fac loginul din fisierul php am asa:
Cod: Selectaţi tot
function cryptpw($password)
{
for($i=0; $i < strlen($password); $i++)
{
$temp = ord($password[$i]);
$temp += (3^$i) * ($i % 15);
if($temp > (0xff))
{
$temp -= 256;
}
$password[$i] = chr($temp);
}
return $password;
}
dar nu merge parola , stiti cumva ce e gresit sau daca e facut bine?
Multumesc