diff --git a/v2rayN/ServiceLib/Handler/CoreHandler.cs b/v2rayN/ServiceLib/Handler/CoreHandler.cs index c16f3fb9..ef0a8260 100644 --- a/v2rayN/ServiceLib/Handler/CoreHandler.cs +++ b/v2rayN/ServiceLib/Handler/CoreHandler.cs @@ -323,7 +323,7 @@ namespace ServiceLib.Handler if (isNeedSudo && _config.TunModeItem.LinuxSudoPwd.IsNotEmpty()) { - var pwd = AesUtils.Decrypt(_config.TunModeItem.LinuxSudoPwd); + var pwd = DesUtils.Decrypt(_config.TunModeItem.LinuxSudoPwd); await Task.Delay(10); await proc.StandardInput.WriteLineAsync(pwd); await Task.Delay(10); diff --git a/v2rayN/ServiceLib/ViewModels/OptionSettingViewModel.cs b/v2rayN/ServiceLib/ViewModels/OptionSettingViewModel.cs index 6dc63db0..87fc6237 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 = AesUtils.Encrypt(TunLinuxSudoPassword); + _config.TunModeItem.LinuxSudoPwd = DesUtils.Encrypt(TunLinuxSudoPassword); } //coreType diff --git a/v2rayN/v2rayN.Desktop/Views/OptionSettingWindow.axaml b/v2rayN/v2rayN.Desktop/Views/OptionSettingWindow.axaml index 7f340867..717551e9 100644 --- a/v2rayN/v2rayN.Desktop/Views/OptionSettingWindow.axaml +++ b/v2rayN/v2rayN.Desktop/Views/OptionSettingWindow.axaml @@ -379,6 +379,7 @@