简体   繁体   English

如何在窗口移动设备中使用Rfc2898DeriveBytes?

[英]How could I use Rfc2898DeriveBytes in window mobile?

I am carrying out a PDA version application from windows version. 我正在从Windows版本执行PDA版本应用程序。 But found out Rfc2898DeriveBytes isn't supported by WM. 但是发现WM不支持Rfc2898DeriveBytes。 So how could I do to replace this piece of code in WM and change nothing about the algorithm? 那么,我该怎么做才能替换WM中的这段代码,并且不更改算法呢?

Many thanks. 非常感谢。

You could check out this on koders.com, it is part of the DotGNU Portable .NET source. 您可以在koders.com上查看此内容,它是DotGNU Portable .NET源代码的一部分。

' DeriveBytes.cs ' ' DeriveBytes.cs '

' Rfc2898DeriveBytes ' (This is a inherited class from DeriveBytes...) ' Rfc2898DeriveBytes ' (这是从DeriveBytes继承的类...)

On another note, you could check the OpenNETCF Smart Device Framework Community Edition , they have a DeriveBytes class, so you could extend it by inheriting from it to make the Rfc2898DeriveBytes implementation by copying/pasting the code from koders.com. 另外,您可以检查OpenNETCF 智能设备框架社区版 ,它们具有DeriveBytes类,因此您可以通过从Rfc2898DeriveBytes复制/粘贴代码来继承它,从而扩展该类以实现Rfc2898DeriveBytes实现。

Hope this helps, Best regards, Tom. 希望这对您有所帮助,汤姆,谢谢。

I guess the first answer is that you could build your own. 我想第一个答案是您可以构建自己的。 The RFC2898 spec is here . RFC2898规范在这里

That would be the only way I know of to get exactly the same features. 那是我知道获得完全相同功能的唯一方法。 The easiest way might be to combine some of the algorithms in the documentation. 最简单的方法可能是合并文档中的某些算法。

Whilst I have not used them, I am told that OpenNetCF community edition has passwordDeriveBytes. 虽然我没有使用过它们,但我被告知OpenNetCF社区版具有passwordDeriveBytes。 So you might be able to make use of that if the license is right. 因此,如果许可证正确,您也许可以利用它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM