当前位置:编程学习 > wap >>

DES求助! 在Windows phone 7 Silverlight環境下

如題!

是否有可用的library
--------------------编程问答-------------------- https://cpascoeenotes.codeplex.com/

没有现成的,你试试这个吧。代码不是wp的,但是加密算法没什么平台依赖性。 --------------------编程问答-------------------- http://sshnet.codeplex.com/
这个是Window Phone平台上可以直接用的包含DES加解密的库。下载下来的文件名是Renci.SshNet.WindowsPhone.dll
加入引用后,调用方法很简单。使用CipherMode类来指定加密模式,然后用类DesCipher加密即可。 --------------------编程问答-------------------- 就我觉得这个还是自己写一下比较好,其实是不难的,学一下DES算法没什么坏处。 --------------------编程问答-------------------- using Renci.SshNet.Security.Cryptography.Ciphers;
using Renci.SshNet.Security.Cryptography.Ciphers.Modes;
using Renci.SshNet.Security.Cryptography.Ciphers.Paddings;

//解码 3Des-CBC-PK5/PK7

                TripleDesCipher cp = new TripleDesCipher(key, new CbcCipherMode(iv), new PKCS7Padding());
                byte[] output = cp.Decrypt(input);

--------------------编程问答-------------------- --------------------编程问答-------------------- 帮楼主顶一下,并发一下自己的困惑:
各位大侠,帮本菜鸟看看吧
http://bbs.csdn.net/topics/390481844?page=1#post-394704273
补充:移动开发 ,  Windows Phone
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,