引入命名空间:

1  using System.Web.Security;

获取MD5码:

1 string Password = FormsAuthentication.HashPasswordForStoringInConfigFile(TextBox1.Text.ToString(), "MD5");



 

posted on 2011-12-20 11:59  Cheval  阅读(161)  评论(0编辑  收藏  举报