Encrypt/Decrypt a structured file

Discussion in 'ASP .Net' started by kevininstructor@state.or.us, Sep 20, 2004.

  1. Guest

    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
     
    , Sep 20, 2004
    #1
    1. Advertising

  2. 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


    "" <> wrote in
    message news:ekj7$...
    > 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, Sep 25, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mark

    Encrypt/decrypt info from form

    Mark, Feb 6, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    1,520
    William LaMartin
    Feb 6, 2004
  2. =?Utf-8?B?TWlrZQ==?=
    Replies:
    0
    Views:
    970
    =?Utf-8?B?TWlrZQ==?=
    Aug 31, 2005
  3. Microsoft

    Password encrypt/decrypt

    Microsoft, Oct 5, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    7,573
    =?Utf-8?B?c3Jpbmk=?=
    Oct 5, 2005
  4. sweety
    Replies:
    9
    Views:
    1,044
    Richard Heathfield
    Feb 7, 2006
  5. Replies:
    1
    Views:
    439
    Daniel Martin
    Jun 16, 2007
Loading...

Share This Page