Example #1
0
        public ActionResult GetPwd()
        {
            var pwd = _restorePwdService.Repository.Entities.FirstOrDefault();

            if (pwd == null || string.IsNullOrWhiteSpace(pwd.Pwd))
            {
                return(Content("Have not configed pwd."));
            }

            var decryptedPwd = DESCrypService.Decrypt(pwd.Pwd);

            return(Json(new { decryptedPwd }, JsonRequestBehavior.AllowGet));
        }
Example #2
0
        public void GetPwd()
        {
            var p = DESCrypService.Decrypt("SZ1bTAe7hlzwDWWWto54uCPDsW84azGu");

            Assert.IsTrue(1 == 1);
        }