|
// 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
|
|