最新下载
热门教程
- 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.
相关文章
- qq邮箱网页版扫码快捷登录-qq邮箱网页版文件中转站直达 02-12
- 星火英语估分入口-星火英语估分器使用指南 02-12
- 樱花动漫APP下载安装最新版本-樱花动漫官方正版APP下载入口 02-12
- 微博网页版入口-微博官网最新在线浏览地址 02-12
- poipiku官网登录入口2026-poipiku官方最新登录地址首页 02-12
- byrut游戏网站怎么进-byrut俄罗斯游戏网站进入教程 02-12