C# 利用ICSharpCode.SharpZipLib实现在线加密压缩和解密解压缩 这里我们选用ICSharpCode.SharpZipLib这个类库来实现我们的需求. 下载地址:http://icsharpcode.github.io/SharpZipLib/ 1.单个或多个文件加密压缩 class ZipClass { public void ZipFile(string FileToZip, string ZipedFile, int CompressionLevel, int Bl
这里我们选用ICSharpCode.SharpZipLib这个类库来实现我们的需求. 下载地址:http://icsharpcode.github.io/SharpZipLib/ 1.单个或多个文件加密压缩 class ZipClass { public void ZipFile(string FileToZip, string ZipedFile, int CompressionLevel, int BlockSize) { if (!System.IO.File.Exists(FileToZ
MD5是message-digest algorithm 5(信息-摘要算法)的缩写.被广泛用于加密和解密技术上,是文件的“数字指纹”.可以对用户的密码进行加密操作,是不可逆的,所以用户输入的密码经过加密处理后与存入数据库的密码的不一样的,进行密码验证的时候是检查密文与数据库内的是否相符.简单举例,用户银行账号的密码经过加密后银行系统后台人员是查不到的. 封装MD5helper: using System; using System.Collections.Generic; using Syst