代理密码是加密的还是散列的?

Is proxy password encrypted or hashed?

代理设置页面声明使用显式设置密码会被加密:

choco config set proxyPassword <passwordThatGetsEncryptedInFile> # optional

https://github.com/chocolatey/choco/wiki/Proxy-Settings-for-Chocolatey#explicit-proxy-settings

准确地说,它真的是加密的还是散列的?

密码已加密。

您可以在此处看到实际效果:

https://github.com/chocolatey/choco/blob/4944318adfff2ea3fe910b4274f87bb3cf57e736/src/chocolatey/infrastructure.app/builders/ConfigurationBuilder.cs#L379

实施如下:

https://github.com/chocolatey/choco/blob/19cdf4b0da51fcb5e12d9b616971e605a3ff7c9a/src/chocolatey/infrastructure.app/nuget/NugetEncryptionUtility.cs#L25