Encrypt streamwriter?

cpopham

Well-known member
Joined
Feb 18, 2004
Messages
273
I am using the following statements:

[c]
Dim ps As New ProcessStartInfo("C:\Program Files\MySQL\MySQL Server 5.0\bin\mysqldump.exe", "-u root -pchecli02 myacct")
ps.UseShellExecute = False
ps.RedirectStandardOutput = True
Dim p As Process
p = New Process
p.StartInfo = ps
p.Start()
Dim sw As New System.IO.StreamWriter("C:\test23.sql")
sw.Write(p.StandardOutput.ReadToEnd())
p.WaitForExit()
[/c]

Is there anyway to encrypt this streamwriter to a file instead of writing to the file and then encrypting the file and writing it back down?

Thanks, Chester
 
Back
Top