title: asp.net mvc 5 how to hash the password
body: <p>this the controller:</p>
  
  <pre><code>   [HttpPost]
          [ValidateAntiForgeryToken]
          public ActionResult Create([Bind(Include = "UserID,UserName,UserEmail,UserPass")] User user)
           {
              user.UserPass= "12345999";
              if (ModelState.IsValid)
              {
                  db.Users.Add(user);
                  db.SaveChanges();
                  return RedirectToAction("Index");
              }
  
          return View(user);
      }
  </code></pre>
  
  <p>1- how I can post the user.UserPass from the form</p>
  
  <p>2- how to Hash it </p>
  
  <p>thanks in advance</p>