-
-
[讨论]给定明文+密文,你能否推出加密表
-
发表于:
2012-3-26 17:54
6458
-
byte[] key_buff=new byte[256];
int b=0,c=0;
public void encrypt(byte[] buff)
{
for (int i = 0; i < buff.length ; i++)
{
this.b = (0xFF & 1 + this.b);
this.c = (0xFF & this.key_buff[this.b] + this.c);
int j = this.key_buff[this.b];
this.key_buff[this.b] = this.key_buff[this.c];
this.key_buff[this.c] = (byte) j; //
buff[i] = (byte)(buff[i] ^ this.key_buff[(0xFF & this.key_buff[this.b] + this.key_buff[this.c])]);
}
}
给出加密前的buff 及 加密后的buff ,你能否推出 key_buff 呢?
如题 rc4,看看有没有人有办法!
[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课