Quantcast
Channel: RaGEZONE - MMO Development Forums
Viewing all articles
Browse latest Browse all 15006

[Discussion] As encrypt runnable

$
0
0
I see the code but not to add the number of encryption, such want encrytion seal the number "98" but not to put it.:?:

My Source (MZip.cpp)

PHP Code:

void ConvertChar(charpData,int _size)
{
    if(!
pData) return;

    
WORD w;
    
BYTE b,bh;

    for(
int i=0;i<_size;i++) {
        
= *pData 0xFF;
        
b<<3;
        
bh = (w&0xff00)>>8;
        
w&0xff;
        *
pData BYTEbh );
        
pData++;

    }
}

void RecoveryChar(charpData,int _size)
{
    if(!
pData) return;

    
BYTE b,bh,d;

    for(
int i=0;i<_size;i++) {

        
= *pData;
        
bh b&0x07;
        
= (bh<<5)|(b>>3);
        *
pData 0xff;
        
pData++;
    }


:*:

Viewing all articles
Browse latest Browse all 15006

Trending Articles