diff --git a/Obfuz/Packages/com.code-philosophy.obfuz/Editor/Settings/SecretSettings.cs b/Obfuz/Packages/com.code-philosophy.obfuz/Editor/Settings/SecretSettings.cs index 1a53d7e..09c2143 100644 --- a/Obfuz/Packages/com.code-philosophy.obfuz/Editor/Settings/SecretSettings.cs +++ b/Obfuz/Packages/com.code-philosophy.obfuz/Editor/Settings/SecretSettings.cs @@ -23,8 +23,8 @@ namespace Obfuz.Settings [Tooltip("name of assemblies those use dynamic secret key")] public string[] assembliesUsingDynamicSecretKeys; - public string DefaultStaticSecretKeyOutputPath => Path.Combine(secretKeyOutputPath, "defaultStaticSecret.bytes"); + public string DefaultStaticSecretKeyOutputPath => Path.Combine(secretKeyOutputPath, "defaultStaticSecretKey.bytes"); - public string DefaultDynamicSecretKeyOutputPath => Path.Combine(secretKeyOutputPath, "defaultDynamicSecret.bytes"); + public string DefaultDynamicSecretKeyOutputPath => Path.Combine(secretKeyOutputPath, "defaultDynamicSecretKey.bytes"); } } diff --git a/Obfuz/Packages/com.code-philosophy.obfuz/Editor/Unity/ObfuzMenu.cs b/Obfuz/Packages/com.code-philosophy.obfuz/Editor/Unity/ObfuzMenu.cs index dcfc409..d0162c3 100644 --- a/Obfuz/Packages/com.code-philosophy.obfuz/Editor/Unity/ObfuzMenu.cs +++ b/Obfuz/Packages/com.code-philosophy.obfuz/Editor/Unity/ObfuzMenu.cs @@ -14,7 +14,7 @@ namespace Obfuz.Unity [MenuItem("Obfuz/Settings...", priority = 1)] public static void OpenSettings() => SettingsService.OpenProjectSettings("Project/Obfuz"); - [MenuItem("Obfuz/GenerateVM", priority = 62)] + [MenuItem("Obfuz/GenerateEncryptionVM", priority = 62)] public static void GenerateEncryptionVM() { EncryptionVMSettings settings = ObfuzSettings.Instance.encryptionVMSettings; @@ -22,7 +22,7 @@ namespace Obfuz.Unity generator.Generate(settings.codeOutputPath); } - [MenuItem("Obfuz/SaveSecretFile", priority = 63)] + [MenuItem("Obfuz/GenerateSecretKeyFile", priority = 63)] public static void SaveSecretFile() { SecretSettings settings = ObfuzSettings.Instance.secretSettings; @@ -33,6 +33,7 @@ namespace Obfuz.Unity var dynamicSecretBytes = KeyGenerator.GenerateKey(settings.defaultDynamicSecretKey, VirtualMachine.SecretKeyLength); SaveKey(dynamicSecretBytes, settings.DefaultDynamicSecretKeyOutputPath); Debug.Log($"Save dynamic secret key to {settings.DefaultDynamicSecretKeyOutputPath}"); + AssetDatabase.Refresh(); } private static void SaveKey(byte[] secret, string secretOutputPath)