private void ComprimirYEncriptarParametros(XmlDocument xmlPar) { MemoryStream outPar = new MemoryStream(); GZipStream gzip = new GZipStream(outPar, CompressionMode.Compress); // BZip2Stream gzip = new BZip2Stream(outPar, CompressionMode.Compress); StreamWriter stWri = new StreamWriter(gzip); stWri.Write(xmlPar.OuterXml); stWri.Close(); outPar.Close(); byte[] res = Cadenas.Encriptar(outPar.ToArray()); File.WriteAllBytes(PathAlmacen, res); }
private void EncriptarParametros(XmlDocument xmlPar) { File.WriteAllBytes(PathAlmacen, Cadenas.Encriptar(xmlPar.OuterXml)); }