

(((( 

#include <windows.h>
#include <stdio.h>
#include <iostream>
#define codeA 0x43
#define codeB 0x44
#define codeC 0x45
#define codeD 0x46
#define codeE 0x47
#define codeH 0x4A
#define codeI 0x4B
#define codeM 0x4F
#define codeN 0x50
#define codeO 0x51
#define codeP 0x52
#define codeR 0x54
#define codeS 0x55
#define codeT 0x56
#define codeY 0x5B
using namespace std;
char solution[100]={{codeC},{codeR},{codeY},{codeP},{codeT},{codeI},{codeO},{codeN}};
char input[100];
char destination[100];
void crypt( char* src , char* dest )
{
int i = 0;
while( *src != NULL )
{
*dest = *src + 0x02;
src++;
dest++;
}
}
bool testthem( char* ptest1 , char* ptest2 )
{
int i = 0;
while( *ptest1 == *ptest2 )
{
if( *ptest1 == NULL && *ptest2 == NULL )
{
return true;
}
ptest1++;
ptest2++;
}
return false;
}
int main()
{
cout<<"Enter the password:"<<endl;
cin>>input;
crypt( input , destination );
if( testthem ( solution , destination ) )
{
MessageBox(0, TEXT("You won!! -Post the word you entered to the forum-"), TEXT("Doofbla crypt"), MB_OK | MB_SYSTEMMODAL);
}
else
{
MessageBox(0, TEXT("You fail!! Try again"), TEXT("Doofbla crypt"), MB_OK | MB_SYSTEMMODAL);
}
system("PAUSE");
return 0;
}