Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

C 

Trash symbol spawning

i have created a program that decrypt some encrypted text from hex so ill get to the point
h t t p : / / i 6 4 . t i n y p i c . c o m / 4 v 3 9 5 i . j p g
result spawns some trash symbol while they must not spawn like that

HEReS MY CODE
Code
string thing = "c2c4c6";
            printf("\n");
        system("cls");
        printf("\n\t\t\t\t[TEXT DECRYPTION]                            \n");
        printf("Text you want to Dencrypt : ");
        printf("\n[RESULT]\n\n");
        char contain;
string datab[] =  {"c2","c4","c6","c8","ca","cc","ce","d0","d2","d4","d6","d8","da","dc","de","e0","e2","e4","e6","e8","ea","ec","ee","f0","f2","f4","82","84","86","88","8a","8c","8e","90","92","94","96","98","9a","9c","9e","a0","a2","a4","a6","a8","aa","ac","ae","b0","b2","b4","62","64","66","68","6a","6c","6e","70","72","60","42","80","46","48","4a","bc","4c","54","50","52","5a","7a","b6","ba","b8","76","4e","58","5c","5e","be","56","f6","fa","f8","74","44","78","7c","7e","c0","fc"};
char conv[] = {97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,49,50,51,52,53,54,55,56,57,48,33,64,35,36,37,94,38,42,40,41,45,61,91,93,92,59,39,44,46,47,95,43,123,125,124,58,34,60,62,63,96,126};
char content[] = {194,196,198,200,202,204,206,208,210,212,214,216,218,220,222,224,226,228,230,232,234,236,238,240,242,244,130,132,134,136,138,140,142,144,146,148,150,152,154,156,158,160,162,164,166,168,170,172,174,176,178,180,98,100,102,104,106,108,110,112,114,96,66,128,70,72,74,188,76,84,80,82,90,122,182,186,184,118,78,88,92,94,190,86,246,250,248,116,68,120,124,126,192,252};

int x = thing.length();
string b;int c[x];

for (int y=0; y<x/2; y++){
    b = thing.substr(y*2, 2);
    for (int q=0; q<=94;++q){
        if (b.find(datab[q]) != std::string::npos) {
        contain = content[q]-conv[q];
        printf("%c",contain);
        
        }    
    }
    
}

i have put "c2c4c6" as the users for example then the result must be "abc" but it shows "a┐b┐c" can someone help me up?


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C] by maypeMar 31, 2020 12:23 PM 4 136 Mar 31, 2020 12:23 PM
Last Post: saltycracker
[Java] by ShxtdownFeb 7, 2019 08:20 PM 7 302 Feb 7, 2019 08:20 PM
Last Post: Caliban
[C#] by UserUser123123Oct 18, 2017 11:01 AM 10 423 Oct 18, 2017 11:01 AM
Last Post: kevy42