Results 1 to 8 of 8
  1. #1
    CodeDemon's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    vagina
    Posts
    1,070
    Reputation
    50
    Thanks
    940
    My Mood
    Fine

    Encrypt/Decrypt Functions

    Just a lil' something I found on google, this should stop those pesky hex editors! I take no credit for these, however I don't know who they belong too.

    Code:
    char* encrypt(const char* plaintext)
    {
    int len = strlen(plaintext);
    char* cyphertext = new char[len+1];
    
    for(int i=0 ; i<len ; ++i)
    {
    cyphertext[i] = plaintext[i] + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9;
    }
    cyphertext[len] = 0; 
    return cyphertext;
    }
    
    char* decrypt(const char* plaintext)
    {
    int len = strlen(plaintext);
    char* cyphertext = new char[len+1];
    
    for(int i=0 ; i<len ; ++i)
    {
    cyphertext[i] = plaintext[i] - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9;
    }
    cyphertext[len] = 0; 
    return cyphertext;
    }
    If you have no clue how to use em, all I can say is: learn C++ /


    Enjoy!

  2. The Following 5 Users Say Thank You to CodeDemon For This Useful Post:

    GameTrainerMaker (09-08-2010),kotentopf (09-08-2010),markoj (09-08-2010),NOOB (02-23-2011),vb-dot-net (09-09-2010)

  3. #2
    kotentopf's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    602
    Reputation
    26
    Thanks
    251
    nice dude, i try it out^^

    EDIT:tested
    works great

    [php]test1 = "Hello";
    test2 = decrypt(test1);
    test3 = encrypt(test2);

    DrawString(200,200,0xFFFFFFFF,pFont_Arial,"Normal: %s\nDecypted: %s\nEnycrypted: %s",test1,test2,test3);[/php]
    i thank you fking very much ^^
    Last edited by kotentopf; 09-08-2010 at 10:09 AM.

  4. #3
    CodeDemon's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    vagina
    Posts
    1,070
    Reputation
    50
    Thanks
    940
    My Mood
    Fine
    Quote Originally Posted by kotentopf View Post
    nice dude, i try it out^^

    EDIT:tested
    works great

    [php]test1 = "Hello";
    test2 = decrypt(test1);
    test3 = encrypt(test2);

    DrawString(200,200,0xFFFFFFFF,pFont_Arial,"Normal: %s\nDecypted: %s\nEnycrypted: %s",test1,test2,test3);[/php]
    i thank you fking very much ^^
    No problem! Glad I could help

  5. #4
    Gordon`'s Avatar
    Join Date
    Dec 2007
    Gender
    male
    Posts
    283
    Reputation
    24
    Thanks
    325
    1. Every reverser will see that kind of encryption immediately. But for noobs it's ok.
    2. This function will give you a very very big memory leak when you call it each frame (in Present, EndScene, etc)


  6. #5
    GameTrainerMaker's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    465
    Reputation
    17
    Thanks
    514
    thats what i've been waiting to use thanks +rep

  7. #6
    Void's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Inline.
    Posts
    3,198
    Reputation
    205
    Thanks
    1,445
    My Mood
    Mellow
    If you use this on your program, all I have to do is come here, copy and paste the decrypt function you put up there, and use it to reverse your hack.

  8. #7
    coogle007's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Posts
    267
    Reputation
    18
    Thanks
    297
    My Mood
    Aggressive
    Quote Originally Posted by Void View Post
    If you use this on your program, all I have to do is come here, copy and paste the decrypt function you put up there, and use it to reverse your hack.
    True...
    Anyway Thx

  9. #8
    Stephen's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Location
    Engine.exe
    Posts
    4,689
    Reputation
    184
    Thanks
    1,149
    My Mood
    Aggressive
    Quote Originally Posted by Void View Post
    If you use this on your program, all I have to do is come here, copy and paste the decrypt function you put up there, and use it to reverse your hack.
    Thats why u change it.. notusing the same encryption method

Similar Threads

  1. [Help] Encryption/Decryption [Solved]
    By Lyoto Machida in forum Visual Basic Programming
    Replies: 11
    Last Post: 03-10-2011, 05:07 AM
  2. [release] my aer-246 aes encryption | decryption program
    By cosconub in forum C# Programming
    Replies: 9
    Last Post: 02-02-2011, 06:01 PM
  3. Encrypt/Decrypt vb.Net?
    By o0OpurezO0o in forum Visual Basic Programming
    Replies: 24
    Last Post: 11-22-2010, 09:36 PM
  4. Mods Encrypt/Decrypt???
    By SPA777174 in forum Call of Duty Modern Warfare 2 Help
    Replies: 0
    Last Post: 07-22-2010, 11:33 PM
  5. [TUT]Basic Encrypter\Decrypter
    By Bombsaway707 in forum Visual Basic Programming
    Replies: 30
    Last Post: 12-01-2009, 09:05 PM