zxczxczc

by zzzzzzsd66 on December 21st, 2009
No notes
Syntax: C++
Show lines - Hide lines - Show in textbox - Download
#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
 
int he[] = { 0x69,0x20,0x63,0x6f,0x20,0x6b,0x75,0x72,0x77,0x61,0x20,0x74,0x65,0x72,0x61,0x7a,0x20,0x3f,0x20,0x3a,0x44 };
char hexToAscii(char first, char second)
{
	char hex[5], *stop;
	hex[0] = '0';
	hex[1] = 'x';
	hex[2] = first;
	hex[3] = second;
	hex[4] = 0;
	return strtol(hex, &stop, 16);
}
int main(int argc, char* argv[])
{
 
    int pwd[] = { 0x63,0x68,0x75,0x6A,0x20,0x77,0x69,0x65,0x6C,0x6B,0x69,0x20,0x69,0x20,0x73,0x7A,0x65,0x6C,0x6B,0x69 };
    int c;
    int k = 7;
    char wynik;
 
    for(int j = 0; j <= sizeof(he)/4-1; j++) {
            printf("%c", he[j]); }
    printf("\n\n");        
    for(int i = 0; i <= sizeof(pwd)/4-1; i++) {
 
            int c = pwd[i];
            for(int j = 0; j <= 3; j++) {
                wynik = c ^ k;        
            }
            printf("%c", wynik);            
 
 
 
    }
 
    getch();
}
 

Leave a Reply

Note: XHTML is allowed. Your email address will never be published.

Subscribe to this comment feed via RSS