-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathICacheDecrypt.cs
44 lines (37 loc) · 1.04 KB
/
ICacheDecrypt.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WindowsFormsApp1
{
/// <summary>
/// 解密接口
/// </summary>
public interface ICacheDecrypt
{
string AcceptableExtension
{
get;
}
bool isAcceptable(string cacheFile);
/// <summary>
/// 解密文件
/// </summary>
/// <param name="cacheFile">缓存文件</param>
/// <returns>解密后二进制数据</returns>
byte[] Decrypt(string cacheFile);
/// <summary>
/// 解密文件
/// </summary>
/// <param name="cacheFileData">缓存文件数据</param>
/// <returns></returns>
byte[] Decrypt(byte[] cacheFileData);
/// <summary>
/// 解密文件
/// </summary>
/// <param name="cacheFile">cache文件</param>
/// <param name="decodedFile">解密后文件</param>
void Decrypt(string cacheFile,string decodedFile);
}
}