-
-
[旧帖]
请问这段加密算法可逆吗?谢谢
0.00雪花
-
发表于:
2006-11-20 18:18
3950
-
[旧帖] 请问这段加密算法可逆吗?谢谢
0.00雪花
unsigned long table[256]={/*256 harcoded entry*/}
int main(int argc, char* argv[])
{
if(argc!=2){return 0;}
string buff = "EasyMail";
buff+=argv[1];
buff+="majian";
char* password=(char*)buff.c_str();//"EasyMailadminmajian";
int ecx = strlen(password);
unsigned long eax = 0xfffffffa;
int esi = ecx;
ecx --;
char* edx = password;
while (esi !=0)
{
unsigned long edi;
ecx=*edx;
edi=eax&0xff;
ecx=ecx^edi;
eax=eax>>8;
ecx=table[ecx];
eax=eax ^ ecx;
edx++;
esi--;
}
eax=~eax;
printf("%08lx\n",eax);
return 0;
}
[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课