PCL中的xamarin securestring等效项 [英] xamarin securestring equivalent in PCL

查看:76
本文介绍了PCL中的xamarin securestring等效项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

SecureString is not friendly with PCL.I Know this problem can be worked around using dependency injection But I don't want to do that instead I would like to use something in PCL that would be equivalent to SecureString.

但是到目前为止,我无法找到其他任何类或框架.

But so far I am not able to find any other class or framework.

推荐答案

System.Security.*几乎不存在于任何可移植类库配置文件中.在某些更高版本的.NET Standard中,您也许可以找到它,它提供了.NET更大的子集.

System.Security.* is mostly not present in any Portable Class Library profile. You might be able to find this in some of the higher versions of .NET Standard, which provide a much bigger subset of .NET.

最好的选择是,如果您决定使用PCL,则可以使用PCLCrypto之类的库,或者在每个平台上滚动自己的代码,然后在运行时注入它们.

You best bet, if you are fixed on using PCL is to use libraries such as PCLCrypto or roll your own code per platform and inject that at runtime.

这篇关于PCL中的xamarin securestring等效项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆