示例#1
0
        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"));
 }
示例#3
0
        public ActionResult Index()
        {
            var cO = new CryptoObj();

            return(View(cO));
        }