Files
YooAsset/Assets/YooAsset/Runtime/Services/IEncryptionServices.cs

33 lines
668 B
C#
Raw Normal View History


namespace YooAsset
{
2025-06-20 11:29:22 +08:00
public struct EncryptFileInfo
2023-12-21 19:10:46 +08:00
{
/// <summary>
2025-06-20 11:29:22 +08:00
/// 资源包名称
2023-12-21 19:10:46 +08:00
/// </summary>
2025-06-20 11:29:22 +08:00
public string BundleName;
2023-12-21 19:10:46 +08:00
/// <summary>
2025-06-20 11:29:22 +08:00
/// 文件路径
2023-12-21 19:10:46 +08:00
/// </summary>
2025-06-20 11:29:22 +08:00
public string FileLoadPath;
2023-12-21 19:10:46 +08:00
}
2025-06-20 11:29:22 +08:00
public struct EncryptResult
2023-12-21 19:10:46 +08:00
{
/// <summary>
2025-06-20 11:29:22 +08:00
/// 文件是否加密
2023-12-21 19:10:46 +08:00
/// </summary>
2025-06-20 11:29:22 +08:00
public bool Encrypted;
2023-12-21 19:10:46 +08:00
/// <summary>
2025-06-20 11:29:22 +08:00
/// 加密后的文件数据
2023-12-21 19:10:46 +08:00
/// </summary>
2025-06-20 11:29:22 +08:00
public byte[] EncryptedData;
2023-12-21 19:10:46 +08:00
}
public interface IEncryptionServices
{
EncryptResult Encrypt(EncryptFileInfo fileInfo);
}
}