最简单的一种是:
第一加密:string e= System.Web.Security.FormsAuthentication. HashPasswordForStoringInConfigFile(输入的变量md5");
第二解密;首先得到上次加密的字符串如b
if(b==System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(输入的变量,"md5");)