gpt4 book ai didi

c# - PCL 中的 xamarin securestring 等价物

转载 作者:行者123 更新时间:2023-11-30 23:13:10 25 4
gpt4 key购买 nike

SecureString 对 PCL 不友好。我知道可以使用依赖注入(inject)解决这个问题,但我不想这样做,而是想在 PCL 中使用与 SecureString 等效的东西。

但到目前为止我找不到任何其他类或框架。

最佳答案

System.Security.* 大多数情况下不存在于任何可移植类库配置文件中。您可能会在一些更高版本的 .NET Standard 中找到它,它们提供了更大的 .NET 子集。

你最好打赌,如果你固定使用 PCL,那就是使用 PCLCrypto 之类的库,或者为每个平台滚动你自己的代码并在运行时注入(inject)它。

关于c# - PCL 中的 xamarin securestring 等价物,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43751029/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com