Exemple #1
0
        public void DecryptDesTest()
        {
            var path   = AppDomain.CurrentDomain.BaseDirectory + "\\upgrade.config.json";
            var str    = FileUtil.GetFileContent(path);
            var config = JsonHelper.JSONToObject <UpgradeConfig>(str);
            var result = DESUtil.DecryptDes(config.Encryptstr, key);
            var info   = JsonHelper.JSONToObject <UpgradeInfo>(result);

            Console.WriteLine(result);
        }