好的,在你们谴责我之前:我知道这是一个可怕的代码和超弱的密码。我只是想找出以下是否有资格成为分组密码(即使是非常基本且薄弱的密码)
int main(){
int mac = 123;
int key = 789;
int enc = mac^key;
printf("encrypted text = %d\n",enc);
int plain = enc^key;
printf("decrypted text = %d\n",plain);
return 0;
}
这是输出:
encrypted text = 878
decrypted text = 123