Update CoreHandler.cs

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

View file

@ -323,7 +323,7 @@ namespace ServiceLib.Handler
if (isNeedSudo && _config.TunModeItem.LinuxSudoPwd.IsNotEmpty())
{
var pwd = DesUtils.Decrypt(_config.TunModeItem.LinuxSudoPwd);
var pwd = AesUtils.Decrypt(_config.TunModeItem.LinuxSudoPwd);
await Task.Delay(10);
await proc.StandardInput.WriteLineAsync(pwd);
await Task.Delay(10);