这里我们选用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
用火车头测试采集美拍的数据时无意中发现美拍的视频地址是一段加了混淆字符串的base64代码.如下图 于是好奇之下研究了下解密算法.具体过程省略800字.发现美拍的视频解密是通过js完成,于是找到了具体的解密代码,如下: ;(function(a) { var b = "substring", c = "split", d = "replace", e = "substr", f = { getHex: function(a)
在tar解压文件时发生下面错误信息 gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now 发现文件被加密压缩了,可以用下面方式进行解压 1.加密压缩 tar -czvf - file | openssl des3 -salt -k password -out /path/to/file.tar.gz 2.解密解压 openssl des3 -d
C# 利用ICSharpCode.SharpZipLib实现在线加密压缩和解密解压缩 这里我们选用ICSharpCode.SharpZipLib这个类库来实现我们的需求. 下载地址:http://icsharpcode.github.io/SharpZipLib/ 1.单个或多个文件加密压缩 class ZipClass { public void ZipFile(string FileToZip, string ZipedFile, int CompressionLevel, int Bl