Groups | Blog | Home
all groups > dotnet faqs > september 2004 >

dotnet faqs : Encrypt/Decrypt a structured file


kevininstructor NO[at]SPAM state.or.us
9/20/2004 2:28:09 PM
I am looking to encrypt a file with a structure as follows (for storing data
which does FTP connections):

Structure SiteInformation
Public ID As Integer
Public DisplayName As String
Public UserName As String
Public UserPassword As String
Public RemoteDirectory As String
Public Host As String
Public Anonymouse As Boolean
End Structure

The examples I am finding (on the web and DotNet documentation) are for
encrypting strings not structures. Any ideas?

Thanks in advance for any insight/assistance,
Kevin

Jonathan Allen
9/24/2004 10:25:41 PM
Just convert it into a string or array of strings. If you use a single
string, insert a CrLf between each field, as none of them should ever use
it.

--
Jonathan Allen


"kevininstructor@state.or.us" <Kevin.S.Gallagher@state.or.us> wrote in
message news:ekj7$j1nEHA.1248@TK2MSFTNGP09.phx.gbl...
[quoted text, click to view]

AddThis Social Bookmark Button