Help solve this enigma,please

Discussion in 'C' started by falcon758, Sep 24, 2011.

Thread Status:
Not open for further replies.
  1. falcon758

    falcon758 New Member

    Joined:
    May 5, 2007
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    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.

    Code:
    
    //<pre> XML 
    //Libraries
    #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; 
    for(i=1;i<N;i++) 
    d[i] = d[i-1] * 69069 + 1; 
    for(i=0;i<N;i++) 
    for(j=1;j<N;j++) 
    if(d[j]=1<d[j-1]) 
    F(d[j-1],d[j]) 
    h=0; 
    for(i=0;i<N;i++) 
    h=h*13*d[i]; 
    h ^= 0x8678ADF24D4F64EFULL; 
    printf("Please, mail to %8.8s8.8s@groop.com\n",&h); 
    return 0; 
    } 
    //</pre>
    
    
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
Thread Status:
Not open for further replies.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice