SA-MP Forums Archive
Encrypt to Decrypt - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Encrypt to Decrypt (/showthread.php?tid=46266)



Encrypt to Decrypt - stefanlg - 06.08.2008

pawn Код:
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;
}
How do i make a code like this that would decrypt what it encrypted?


Re: Encrypt to Decrypt - stefanlg - 06.08.2008

anyone know?


Re: Encrypt to Decrypt - Spear - 07.01.2010

can anyone help?


Re: Encrypt to Decrypt - Grim_ - 07.01.2010

There is no need to un-encrypt things. Just encrypt the string and compare it to the already encrypted one, if that's what you're trying to do.