obfuz/Editor/Settings/SecretSettings.cs

31 lines
949 B
C#
Raw Permalink Normal View History

2025-05-12 08:46:44 +08:00
using System;
2025-05-16 11:33:03 +08:00
using System.IO;
2025-05-12 08:46:44 +08:00
using UnityEngine;
namespace Obfuz.Settings
{
[Serializable]
public class SecretSettings
{
2025-05-16 11:33:03 +08:00
[Tooltip("default static secret key")]
2025-05-17 12:11:36 +08:00
public string defaultStaticSecretKey = "Code Philosophy-Static";
2025-05-12 08:46:44 +08:00
2025-05-17 12:11:36 +08:00
[Tooltip("default dynamic secret key")]
public string defaultDynamicSecretKey = "Code Philosophy-Dynamic";
2025-05-16 11:33:03 +08:00
2025-05-17 12:11:36 +08:00
[Tooltip("secret key output path")]
public string secretKeyOutputPath = $"Assets/Resources/Obfuz";
2025-05-12 08:46:44 +08:00
[Tooltip("random seed")]
public int randomSeed = 0;
2025-05-16 11:33:03 +08:00
2025-05-17 12:11:36 +08:00
[Tooltip("name of assemblies those use dynamic secret key")]
public string[] assembliesUsingDynamicSecretKeys;
2025-05-16 11:33:03 +08:00
2025-05-17 12:11:36 +08:00
public string DefaultStaticSecretKeyOutputPath => Path.Combine(secretKeyOutputPath, "defaultStaticSecret.bytes");
2025-05-16 11:33:03 +08:00
2025-05-17 12:11:36 +08:00
public string DefaultDynamicSecretKeyOutputPath => Path.Combine(secretKeyOutputPath, "defaultDynamicSecret.bytes");
2025-05-12 08:46:44 +08:00
}
}