From 7476cceda3a24c8d93dab3ed57d8a557aae40037 Mon Sep 17 00:00:00 2001 From: cryptochecktool Date: Tue, 26 Nov 2024 11:39:26 +0800 Subject: [PATCH] Update OptionSettingViewModel.cs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将Desutils替换为Aesutils,提升安全性。 --- v2rayN/ServiceLib/ViewModels/OptionSettingViewModel.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/v2rayN/ServiceLib/ViewModels/OptionSettingViewModel.cs b/v2rayN/ServiceLib/ViewModels/OptionSettingViewModel.cs index 53fe1df6..6dc63db0 100644 --- a/v2rayN/ServiceLib/ViewModels/OptionSettingViewModel.cs +++ b/v2rayN/ServiceLib/ViewModels/OptionSettingViewModel.cs @@ -347,7 +347,7 @@ namespace ServiceLib.ViewModels _config.TunModeItem.EnableIPv6Address = TunEnableIPv6Address; if (TunLinuxSudoPassword != _config.TunModeItem.LinuxSudoPwd) { - _config.TunModeItem.LinuxSudoPwd = DesUtils.Encrypt(TunLinuxSudoPassword); + _config.TunModeItem.LinuxSudoPwd = AesUtils.Encrypt(TunLinuxSudoPassword); } //coreType @@ -405,4 +405,4 @@ namespace ServiceLib.ViewModels } } } -} \ No newline at end of file +}