Posted on: 6/15/2013 6:09:48 AM | Views : 455

i want to decrypt the pasword in this code given below
what i am doing is
taking password from login page
then i have to encrypt this pasword
then i have to match this encrypted password to the password which is in database table named user

protected void Button1_Click(object sender, EventArgs e) { SqlConnection con = new SqlConnection(DataBase.connect); SqlDataAdapter da = new SqlDataAdapter("select * from Users where username= '" + TextBox1.Text + "' and password ='" + TextBox2.Text + "'", con); DataSet ds = new DataSet(); da.Fill(ds, "users"); if (ds.Tables["Users"].Rows.Count > 0) { DataRow dr = ds.Tables["Users"].Rows[0]; if (dr["UserType"].ToString() == "Admin") { Response.Redirect("adminPa ...

Go to the complete details ...