public void creararchivo()
        {
            ClsDatos     datos = new ClsDatos();
            string       cadena;
            string       filename = @"C:\Users\Developer\Downloads\sysinit.ini";
            FileStream   Stream   = new FileStream(filename, FileMode.OpenOrCreate, FileAccess.Write);
            StreamWriter writer   = new StreamWriter(Stream);

            cadena = "Server=" + servidor + ";Database=" + bd + "; User Id=" + user + ";Password=" + pass;
            string cadenaencriptada = datos.Encriptar(cadena);

            writer.WriteLine(cadenaencriptada);
            writer.Close();
        }
        public string datosBaseDatos()
        {
            string cadenas = "";

            if (File.Exists(sFileName))
            {
                ClsConexion  conexion = new ClsConexion();
                ClsDatos     datos    = new ClsDatos();
                FileStream   fs       = new FileStream(sFileName, FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
                StreamReader sr       = new StreamReader(fs);
                string       sContent = sr.ReadToEnd();
                conexion.cadenadesencriptada = datos.Desencriptar(sContent);
                cadenas = conexion.cadenadesencriptada;
                fs.Close();
                sr.Close();
            }
            return(cadenas);
        }