开发者

How could I use Rfc2898DeriveBytes in window mobile?

I am carrying out a PDA version application from windows version. But found out Rfc2898DeriveBytes isn't supported by WM. So how could I开发者_运维问答 do to replace this piece of code in WM and change nothing about the algorithm?

Many thanks.


You could check out this on koders.com, it is part of the DotGNU Portable .NET source.

'DeriveBytes.cs'

'Rfc2898DeriveBytes' (This is a inherited class from 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.

Hope this helps, Best regards, Tom.


I guess the first answer is that you could build your own. The RFC2898 spec is here.

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. So you might be able to make use of that if the license is right.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜