2025-01-09 11:31:04 +08:00
|
|
|
|
|
|
|
|
|
namespace YooAsset
|
|
|
|
|
{
|
2025-09-02 19:21:49 +08:00
|
|
|
|
public struct EncryptFileInfo
|
2025-01-09 11:31:04 +08:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2025-09-02 19:21:49 +08:00
|
|
|
|
/// 资源包名称
|
2025-01-09 11:31:04 +08:00
|
|
|
|
/// </summary>
|
2025-09-02 19:21:49 +08:00
|
|
|
|
public string BundleName;
|
2025-01-09 11:31:04 +08:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2025-09-02 19:21:49 +08:00
|
|
|
|
/// 文件路径
|
2025-01-09 11:31:04 +08:00
|
|
|
|
/// </summary>
|
2025-09-02 19:21:49 +08:00
|
|
|
|
public string FileLoadPath;
|
2025-01-09 11:31:04 +08:00
|
|
|
|
}
|
2025-09-02 19:21:49 +08:00
|
|
|
|
public struct EncryptResult
|
2025-01-09 11:31:04 +08:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2025-09-02 19:21:49 +08:00
|
|
|
|
/// 文件是否加密
|
2025-01-09 11:31:04 +08:00
|
|
|
|
/// </summary>
|
2025-09-02 19:21:49 +08:00
|
|
|
|
public bool Encrypted;
|
2025-01-09 11:31:04 +08:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2025-09-02 19:21:49 +08:00
|
|
|
|
/// 加密后的文件数据
|
2025-01-09 11:31:04 +08:00
|
|
|
|
/// </summary>
|
2025-09-02 19:21:49 +08:00
|
|
|
|
public byte[] EncryptedData;
|
2025-01-09 11:31:04 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public interface IEncryptionServices
|
|
|
|
|
{
|
|
|
|
|
EncryptResult Encrypt(EncryptFileInfo fileInfo);
|
|
|
|
|
}
|
|
|
|
|
}
|