Update OptionSettingViewModel.cs

将Desutils替换为Aesutils,提升安全性。
This commit is contained in:
cryptochecktool 2024-11-26 11:39:26 +08:00 committed by GitHub
parent ca38239bce
commit 7476cceda3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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