Update OptionSettingViewModel.cs (#6162)

将Desutils替换为Aesutils,提升安全性。
pull/6168/head
cryptochecktool 2024-11-26 13:53:50 +08:00 committed by GitHub
parent 9f44815470
commit 1b9c95e801
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

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
@ -405,4 +405,4 @@ namespace ServiceLib.ViewModels
}
}
}
}
}