public ActionResult generatePassword() { var randomString = SecurePasswordHasher.RandomString(10); var hash = SecurePasswordHasher.Hash(randomString); return(RedirectToAction("CreateChat")); }