Results 1 to 3 of 3
  1. #1
    arun823's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Los Angeles, California
    Posts
    524
    Reputation
    151
    Thanks
    1,887
    My Mood
    Amused

    Encrypting Memory Functions

    Hey, I am trying to encrypt my strings in order for it to be undetected by Nexon's HShield. I have the class for it right here, but how do I go about using it to encrypt my memory function.

    Code:
    using std :: cout;
    using std :: endl;
    void encrypt( char [ ] ); // prototypes of functions used in the code
    void decrypt( char * ePtr );
    int main( )
    {
    // create a string to encrypt
    char string[ ] = "this is a secret!";
    cout << "Original string is: " << string << endl;
    encrypt( string );
    // call to the function encrypt( )
    cout << "Encrypted string is: " << string << endl;
    decrypt( string );
    // call to the function decrypt( )
    cout << "Decrypted string is: " << string << endl;
    return 0;
    }// main

  2. #2
    Flengo's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    Ontario, Canada
    Posts
    15,696
    Reputation
    3319
    Thanks
    11,111
    My Mood
    Happy
    I'm pretty sure he's talking about string encryption.

    You can read about it in Flameswor10's thread here - http://www.mpgh.net/forum/207-combat...n-methods.html
    I Read All Of My PM's & VM's
    If you need help with anything, just let me know.
     
     
    VM | PM

    Publicist Since 04.04.2015
    Middleman Since Unknown - Unknown
    Global Moderator Since 08.01.2013
    Donator Since 05.29.2013

    Minion+ Since 04.18.2013

    District 187 Minion Since 04.04.2013
    Steam Minion Since 02.26.2013
    WarRock Minion Since 02.19.2013
    A.V.A Minion Since 02.13.2013
    DayZ Minion Since 01.21.2013
    Combat Arms Minion Since 12.26.2012
    Contributor Since 11.16.2012
    Member Since 05.11.2010


  3. #3
    Departure's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    818
    Reputation
    125
    Thanks
    1,785
    My Mood
    Doh
    Quote Originally Posted by arun823 View Post
    Hey, I am trying to encrypt my strings in order for it to be undetected by Nexon's HShield. I have the class for it right here, but how do I go about using it to encrypt my memory function.
    Encryption is actually easy once you understand what it actually is, it's just the ability to turn series of bytes into random bytes and then back again, the most basic Encryption in programming is xor(Exclusive OR) using bytes, and the most basic in Text encryption is shift encryption and one of the oldest methods of shift encryption is caesar encryption where you shift the alphabet to left or right(Encrypt/Decrypt) a given amount of times. for example if I had a string "abcdef" and I used ceasar encryption with a key(amount of times to shift to the left) that was 3 I would get "defabc" I would used the same key 3 to shift back to the right for decryption which would result back to "abcdef". even this method of basic encryption is good enough to hide your strings. Now once you understand that a string is just an array of bytes Encryption becomes a lot more easy, you can start using combinations of encryption methods, for example the ceasar method to shift the text used with a key(3 in the above example) then xor each character with the same key, As each character is a just byte anyway. Main thing to remember is its easy to convert a character to a byte and a character to a decimal value or any conversion between these 3. you can even have an array decimal value which represent each character in your string. Anyway for better explanation between data type representations check this chart.. Ascii Table - ASCII character codes and html, octal, hex and decimal chart conversion

    Once you understand how simple it is you should be able to whip up a simple encryption for your self in no time at all.

  4. The Following User Says Thank You to Departure For This Useful Post:

    AtomicStone (06-09-2012)

Similar Threads

  1. Encrypt/Decrypt Functions
    By CodeDemon in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 7
    Last Post: 09-09-2010, 05:59 AM
  2. C++ Memory write/read functions?
    By Spoking in forum C++/C Programming
    Replies: 16
    Last Post: 08-07-2009, 01:52 PM
  3. Encryption on Files
    By HolyFate in forum Gunz General
    Replies: 15
    Last Post: 02-20-2006, 02:50 PM
  4. Replies: 3
    Last Post: 01-04-2006, 10:52 PM
  5. Direct Memory Access (DMA) to Static Memory Addresses
    By Dave84311 in forum Game Hacking Tutorials
    Replies: 0
    Last Post: 12-31-2005, 09:18 PM