Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   Help solve this enigma,please. (http://www.go4expert.com/forums/help-solve-enigmaplease-t26772/)

falcon758 24Sep2011 07:51

Help solve this enigma,please.
Hello fellows,

I have this code here, that the objective of it, is to decrypt the final email, but for that the missing parts of the code must be fixed for that to work.
I don't find the way to resolve this one.
Can you guys help me out, please?

Thank You in advance.


//<pre> XML
#include <stdio.h>
#include <stdlib.h>
//Global variables
typedef unsigned __int32 uint32_t;
typedef unsigned __int64 uint64_t;
//#define N(1<<25)
#define N 25
#define F(a,b){(a)^=(a);(a)^=(b);}
//int d[N];
uint32_t d[N];
//Main programm: show email
int main(void)
//int h,i,j;
uint64_t h,i,j;
d[i] = d[i-1] * 69069 + 1;
h ^= 0x8678ADF24D4F64EFULL;
printf("Please, mail to %8.8s8.8s@groop.com\n",&h);
return 0;

xpi0t0s 30Sep2011 15:11

Re: Help solve this enigma,please.
On http://cboard.cprogramming.com/c-pro...ma-please.html
you said "This is a test that my University gave me"

This is a test that your University gave YOU. Not to spam the programming forums with for other people to solve. YOU must solve this. On your own. Otherwise you would be considered to have cheated/plagiarised, and plagiarism is a serious offence in academic circles. In any case the analysis by davekw7x at http://www.gidforums.com/t-25246.html significantly reduces any confidence your university would have in your final solution, if they do what I did and google that rather unique constant in the source code.

If you can't do it then hand it back stating you can't do it. That would at least be truthful.

All times are GMT +5.5. The time now is 12:32.