Source Code C++ Xor Enkripsi

Rhm-Files - Kali ini saya akan bagikan sebuah Source code Xor Enkripsi C++ , oke langsung simak saja tutorial pemasangan source codenya, perhatikan dan cermati baik-baik,


Enkripsi sangat membantu agar program anda tidak mudah di debug oleh tangan" jahil.
Berikut adalah source code Xor Encryption pada C++.

Berikut Source code nya :

Buatlah Header Xor.h, dan copy paste source dibawah ini :
#ifndef _XOR_H
#define _XOR_H
template <int XORSTART, int BUFLEN, int XREFKILLER>
class XorStr
{
private:
    XorStr();
public:
    char s[ BUFLEN ];
    XorStr( const char * xs );
    ~XorStr()
    {
        for ( int i = 0; i < BUFLEN; i++ ) s[ i ]=0;
    }
};

template <int XORSTART, int BUFLEN, int XREFKILLER>
XorStr<XORSTART,BUFLEN,XREFKILLER>::XorStr( const char * xs )
{
    int xvalue = XORSTART;
    int i = 0;
    for ( ; i < ( BUFLEN - 1 ); i++ )
    {
        s[ i ] = xs[ i - XREFKILLER ] ^ xvalue;
        xvalue += 1;
        xvalue %= 256;
    }
    s[ BUFLEN - 1 ] = 0;
}
#endif
Untuk generate Text ke Xor Klik Disini

Contoh cara penggunaannya :

GetModuleHandleA(/*kernel32.dll*/XorStr<0xB6,13,0xF13244E1>("\xDD\xD2\xCA\xD7\xDF\xD7\x8F\x8F\x90\xDB\xAC\xAD"+0xF13244E1).s);
Berikut tutorial dari saya mengenai Source Code C++ Xor Enkripsi semoga membantu dan bermanfaat bagi anda. bila masih bingung silahkan komentar di bawah :)

0 Yorum