Ejemplo n.º 1
0
        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");
        }