.NET中获取字符串的MD5码

1、导入命名空间:

using System.Web.Security; 

2、获取MD5码:

如:

123456的MD5码是: FormsAuthentication.HashPasswordForStoringInConfigFile("123456","MD5")

posted @ 2012-10-07 14:43  star2008708  阅读(187)  评论(0编辑  收藏  举报