最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
文件加密&字符加密的代码
时间:2022-07-02 12:15:01 编辑:袖梨 来源:一聚教程网
///
///desKey: DES的密钥;desIV: DES向量
class encrypfile{
public byte[] desKey;
public byte[] desIV;
public encrypfile(byte[] inputKey,byte[] inputIV){
desKey=inputKey;
desIV=inputIV;
}
///
///inName:被加密文件名;outName: 加密后文件名
public void begintoencry(string inName,string outName){
FileStream fin = new FileStream(inName, FileMode.Open, FileAccess.Read);
FileStream fout = new FileStream(outName, FileMode.OpenOrCreate, FileAccess.Write);
fout.SetLength(0);
byte[] bin = new byte[100]; //This is intermediate storage for the encryption.
long rdlen = 0; //This is the total number of bytes written.
long totlen = fin.Length; //This is the total length of the input file.
int len; //This is the number of bytes to be written at a time.
相关文章
- 夸克网盘如何不限速下载资源-夸克网盘不限速下载资源方法 12-21
- 学信网登录入口-官网安全登录指南(快速便捷的账号登入指引) 12-21
- 漫蛙漫画官方正版入口链接 12-21
- Nano香蕉Pro官网直连入口 Nano香蕉2国内极速直达网址 12-21
- TikTok在线观看视频高清入口-TikTok官网视频流畅播放 12-21
- 搜2026最新红包活动入口 12-21