این برای ثبت با MD5
ببین ثبت می کنه یا نه اگه تونستی راش بندازی بازیابی هم می ذارم
cmdobj.CommandText = "insert into Tbl_Users ( userid ,U_Name ,U_LastName ,U_uUserName,U_pPassWord ) values(@userid ,@U_Name ,@U_LastName ,@U_uUserName,@password)";
cmdobj.Parameters.AddWithValue("@userid", Radif().ToString());
cmdobj.Parameters.AddWithValue("@U_Name", TxtName.Text);
cmdobj.Parameters.AddWithValue("@U_LastName", TxtLastName.Text);
cmdobj.Parameters.AddWithValue("@U_uUserName", TxtUserName.Text);
string strPassword = txtPassword.Text;
MD5CryptoServiceProvider md5Hasher = new MD5CryptoServiceProvider();
byte[] hashedBytes;
UTF8Encoding encoder = new UTF8Encoding();
hashedBytes = md5Hasher.ComputeHash(encoder.GetBytes(strPassword ));
SqlParameter paramPwd;
paramPwd = new SqlParameter("@Password", SqlDbType.Binary, 16);
paramPwd.Value = hashedBytes;
cmdobj.Parameters.Add(paramPwd);
cmdobj.ExecuteNonQuery();
db.Disconnect();