Do you have master mind?

balaji2u

New Member
Messages
410
Reaction score
2
Points
0
Any one of you guys predict what this code is ..
Let me give a clue this is actually used as a trade secrete and then due to its superior features its used as a "________"

Code:
typedef unsigned char uns8;
typedef unsigned char uns16;
static uns8 state[256],x,y;
void thisquestionsanswer_lol (key,length)
uns8 *key;
uns16 length;
{
int i;
uns8 t;
uns8 j;
uns8 k=0;
for (i=256;i--;) //indefinite loop did you got the answer?
state [i]=i;
for(i=0,j=0,i<256;i++,j=(j+1)%length)
t=state[i],state[i]=state[k+=key[j]+t],state[k]=t;
x=0;
y=0;
}
uns8 answer_step_lol()
{
uns8 t;
t=state[y+=state[++x]],state[y]=state[x],state[x]=t;
return (state[state[statex]+state[y]]);
}
If you dont know the answer see this page

Answer
 

Smith6612

I ate all of the x10Pizza
Community Support
Messages
6,517
Reaction score
48
Points
48
It looks to be some sort of Algorithum. This isn't the world's most secure Algorithum is it?
 

balaji2u

New Member
Messages
410
Reaction score
2
Points
0
come on guys its just a c implementation of it.
yeah its an algorith i dont meant to ray its worlds most secure i mean to say it was worlds one of best secrete method.
any hope?
Edit:
you lost me at the "master mind" part...

why?
 
Last edited:

tridge

New Member
Messages
227
Reaction score
0
Points
0
The only languages I know how to program in are VB, HTML and some CSS.
 

balaji2u

New Member
Messages
410
Reaction score
2
Points
0
The only languages I know how to program in are VB, HTML and some CSS.

Hmm but these concepts definitely apart from what you know..
You may have chance to find this if you know VC++ too...
 
Top