|
// encrypt file '*'
CString CXXDlg::EncryptData(CString srcStr)
{
CString destStr = "";
char ch;
for (int i=0; i<srcStr.GetLength(); i++)
{
ch = srcStr[i]+'*';
destStr += ch;
}
return destStr;
}
// dectryption file '*'
CString CXXDlg::DecryptData(CString srcStr)
{
CString destStr = "";
char ch;
for (int i=0; i<srcStr.GetLength(); i++)
{
ch = srcStr[i]-'*';
destStr += ch;
}
return destStr;
}
s
。
[code]原文链接:https://blog.csdn.net/afjafjafj2008/article/details/6569684[/code] |
|