View Single Post
Old Sep 20th, 2005, 2:20 PM   #29
iignotus
Professional Programmer
 
iignotus's Avatar
 
Join Date: Apr 2005
Location: Nowhere Special
Posts: 466
Rep Power: 4 iignotus is on a distinguished road
Send a message via AIM to iignotus
Quote:
dont' take iignotus posts as negative, just think of it as an advice on what ur up against
Haha that's what I intend them to be taken as :p

But actually, tempest had a good idea that may work. You should follow my advice of not even bothering with it, considering the amount of problems it can land you, but if you absolutely had to go about doing it, his idea is a possibility.
__________________
% rc4 hexkey < input > output
#define S ,t=s[i],s[i]=s[j],s[j]=t /* rc4 hexkey <file */
unsigned char k[256],s[256],i,j,t;main(c,v,e)char**v;{++v;while(++i)s[ 
i]=i;for(c=0;*(*v)++;k[c++]=e)sscanf((*v)++-1,"%2x",&e);while(j+=s[i]
+k[i%c]S,++i);for(j=0;c=~getchar();putchar(~c^s[t+=s[i]]))j+=s[++i]S;}
iignotus is offline   Reply With Quote