首页
社区
课程
招聘
[求助]windows mobile 6怎样实现sha256
发表于: 2009-6-13 10:31 5445

[求助]windows mobile 6怎样实现sha256

2009-6-13 10:31
5445
在PC平台的一个程序想转到wm6上来。其中要使用sha256.

using System;
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
using System.Security.Cryptography;

   public string sha256(string iText)
            {
                SHA256 sha = new SHA256Managed();
                return BitConverter.ToString(sha.ComputeHash(Encoding.Default.GetBytes(iText))).Replace("-", "").ToLower();
            }
下面这句
SHA256 sha = new SHA256Managed();
提示错误
错误        1        找不到类型或命名空间名称“SHA256”(是否缺少 using 指令或程序集引用?)

版主及各位高手有办法解决吗?

[课程]Android-CTF解题方法汇总!

收藏
免费 0
支持
分享
最新回复 (4)
雪    币: 331
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
2
sha1,MD5就可以使用。难道是WM6的mscorlib.dll中不包含sha256???
2009-6-13 10:33
0
雪    币: 178
活跃值: (144)
能力值: ( LV4,RANK:50 )
在线值:
发帖
回帖
粉丝
3
网上随便找个namespace,抄袭就有了
2009-6-13 16:57
0
雪    币: 331
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
4
楼上高人给个地址
2009-6-13 17:01
0
雪    币: 2604
活跃值: (64)
能力值: (RANK:510 )
在线值:
发帖
回帖
粉丝
5
在coredll.dll中有取MD5摘要的API函数前面介绍过。当时分析时也看到过取SHA摘要的API函数。
2009-6-13 22:26
0
游客
登录 | 注册 方可回帖
返回
//