PHP8.1.21版本已发布
vue8.1.21版本已发布
jquery8.1.21版本已发布

c++ 加密程序用php怎么写?

原创
2016-06-06 20:47:52 939浏览

#define C1 34783
#define C2 55419
CString Encrypt(CString S, WORD Key) // 加密函数
{
    CString Result,str;
    int i,j;
    Result=S; // 初始化结果字符串
    for(i=0; i>8)); // 将密钥移位后与字符异或
        Key = ((BYTE)Result.GetAt(i)+Key)*C1+C2; // 产生下一个密钥
    }
    S=Result; // 保存结果
    Result.Empty(); // 清除结果
    for(i=0; i

这个问题已被关闭,原因:

回复内容:

#define C1 34783
#define C2 55419
CString Encrypt(CString S, WORD Key) // 加密函数
{
    CString Result,str;
    int i,j;
    Result=S; // 初始化结果字符串
    for(i=0; i>8)); // 将密钥移位后与字符异或
        Key = ((BYTE)Result.GetAt(i)+Key)*C1+C2; // 产生下一个密钥
    }
    S=Result; // 保存结果
    Result.Empty(); // 清除结果
    for(i=0; i
声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。