;
if(outValue != lSize)
throw new CryptoHelpException("文件大小不匹配");
}
}
}
}
if(outValue != lSize)
throw new CryptoHelpException("文件大小不匹配");
}
}
}
}
// 调用
public class TestClass
{
string myPassword = "TEST_PASSWORD_~!@#";
string myPlainFile = "test.txt";
string myEncryptedFile = "test.encrypted";
string myDecryptedFile = "test.decrypted";
[STAThread]
static void Main()
{
CryptoHelp.EncryptFile(myPlainFile, myEncryptedFile, myPassword);
CryptoHelp.DecryptFile(myEncryptedFile,myDecryptedFile, myPassword);
}
}
| 对此文章发表了评论 |

