c语言 - C++字符串逆乘法问题
伊谢尔伦
伊谢尔伦 2017-04-17 13:17:51
0
2
592
伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(2)
Peter_Zhu

The meaning above is a number and the same numberXOR twiceThe result is itself:

std::string str3;
for (int i = 0; i < strCount; i++){
       str3.append(1,str2[i]^(key[i%keyCount]));
    }

This way str3 is the same as str1.

Peter_Zhu

The decryption process of XOR encryption is to XOR the encrypted string again, that is to say, just treat str3 as str1 and put it in your method.

But it’s really amazing. Your algorithm XORs the strings and the resulting string is still readable, which is amazing.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template