Undefined Encrypt
#2

pawn Код:
forward Encrypt(string[]);

public Encrypt(string[])
{
    for(new x=0; x < strlen(string); x++)
    {
        string[x] += (3^x) * (x % 15);
        if(string[x] > (0xff))
        {
            string[x] -= 64;
        }
    }
    return 1;
}

stock ini_GetKey( line[] )
{
    new keyRes[128];
    keyRes[0] = 0;
    if ( strfind( line , "=" , true ) == -1 ) return keyRes;
    strmid( keyRes , line , 0 , strfind( line , "=" , true ) , sizeof( keyRes) );
    return keyRes;
}

stock ini_GetValue( line[] )
{
    new valRes[128];
    valRes[0]=0;
    if ( strfind( line , "=" , true ) == -1 ) return valRes;
    strmid( valRes , line , strfind( line , "=" , true )+1 , strlen( line ) , sizeof( valRes ) );
    return valRes;
}
Reply


Messages In This Thread
Undefined Encrypt - by SnW - 18.12.2009, 14:46
Re: Undefined Encrypt - by SlashPT - 18.12.2009, 14:55
Re: Undefined Encrypt - by SnW - 18.12.2009, 15:02
Re: Undefined Encrypt - by dice7 - 18.12.2009, 15:44
Re: Undefined Encrypt - by SnW - 18.12.2009, 15:48

Forum Jump:


Users browsing this thread: 1 Guest(s)