Update CoreHandler.cs (#6163)

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

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);
@ -418,4 +418,4 @@ namespace ServiceLib.Handler
#endregion Process
}
}
}