I'm pretty sure he's talking about string encryption.
You can read about it in Flameswor10's thread here - https://www.mpgh.net/forum/207-combat...n-methods.html
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
I'm pretty sure he's talking about string encryption.
You can read about it in Flameswor10's thread here - https://www.mpgh.net/forum/207-combat...n-methods.html
I Read All Of My PM's & VM'sIf you need help with anything, just let me know.
Staff Administrator Since 10.13.2019
Publicist Since 04.04.2015
Middleman Since 04.14.2014
Global Moderator Since 08.01.2013
Premium Since 05.29.2013
Minion+ Since 04.18.2013
Combat Arms Minion Since 12.26.2012
Contributor Since 11.16.2012
Member Since 05.11.2010
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.
AtomicStone (06-09-2012)