主题:下列哈希结构需要那些代码。。。
下列哈希还需要什么吗??
using System.Web.Security;
private string EncryptPwd(string password)
{
string str="";
str=FormsAuthentication.HashPasswordForStoringInConfigFile(password,"MD5");
return str;
}
private void ImageButton1_Click(object sender, System.Web.UI.ImageClickEventArgs e)
{
string ii=this.drop.SelectedValue.ToString();
string str="";
str=EncryptPwd(this.TextBox2.Text);
string strSql="select uid,type from fxuser where uid='"+this.TextBox1.Text.Trim () +"'and mm='"+this.TextBox2.Text.Trim()+"'";
OleDbConnection conn=new OleDbConnection(connStr);
OleDbCommand cmd=new OleDbCommand(strSql,conn);
OleDbDataReader sdr;
using System.Web.Security;
private string EncryptPwd(string password)
{
string str="";
str=FormsAuthentication.HashPasswordForStoringInConfigFile(password,"MD5");
return str;
}
private void ImageButton1_Click(object sender, System.Web.UI.ImageClickEventArgs e)
{
string ii=this.drop.SelectedValue.ToString();
string str="";
str=EncryptPwd(this.TextBox2.Text);
string strSql="select uid,type from fxuser where uid='"+this.TextBox1.Text.Trim () +"'and mm='"+this.TextBox2.Text.Trim()+"'";
OleDbConnection conn=new OleDbConnection(connStr);
OleDbCommand cmd=new OleDbCommand(strSql,conn);
OleDbDataReader sdr;