예제 #1
0
파일: FileParser.cs 프로젝트: JJJohan/RTS
        public static void Compress()
        {
            string basePath = Application.dataPath;

            ZipFile zip = new ZipFile();
            zip.AddDirectory(basePath + "/BaseData/");
            zip.Save(basePath + "/BaseData.Data.temp");

            CryptoProvider crypto = new CryptoProvider();
            crypto.EncryptFile(basePath + "/BaseData.Data.temp", basePath + "/BaseData.Data", "Rens");
            File.Delete(basePath + "/BaseData.Data.temp");
        }