public ActionResult Index(CryptoObj cryptoObj) { var sharedKey = ConfigurationManager.AppSettings["cryptoKey"]; var javaScriptSerializer = new System.Web.Script.Serialization.JavaScriptSerializer(); string jsonString = javaScriptSerializer.Serialize(cryptoObj); var EncryptedStuff = Crypto.Encrypt_URLSafe(jsonString, sharedKey); return(Redirect("/DisplayData/Index?value=" + EncryptedStuff)); }
public ActionResult Index(CryptoObj doNothing) { return(RedirectToAction("Index", "Home")); }
public ActionResult Index() { var cO = new CryptoObj(); return(View(cO)); }