Results 1 to 2 of 2

Thread: encrypt field in dataset......

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member gmatteson's Avatar
    Join Date
    Feb 2002
    Location
    Rhode Island, USA
    Posts
    293

    encrypt field in dataset......

    Hello,

    I am using a dataset to read an xml file, there is a password attribute in the xml field which i want to encrypt..


    oDataset.ReadXml(Application.StartupPath & "\connections.xml")
    cboDescription.DisplayMember = "settings_Text"
    cboDescription.DataSource = oDataset.Tables("settings")
    txtHost.DataBindings.Add("text", oDataset.Tables("settings"), "host")
    txtUsr.DataBindings.Add("text", oDataset.Tables("settings"), "username")
    txtPwd.DataBindings.Add("text", oDataset.Tables("settings"), "password")


    i use the above code to bind my controls to the dataset, which reads and loads the data into the controls...

    i already have my encryption function, is it possible to do something like

    Decrypt(txtpwd.databindings.add("text,odataset.tables("settings"), "password"), "MYENCRYPTIONKEY")?

    so that it decrypts the password and they can login?

    i am using the Dataset.createxml("myfile.xml") to save the dataset to an xml file...how can i specify that all the password rows are to be encrypted? would i have to loop through them before i create the xml file ?

    dim odatarow as datarow

    for each odatarow in datarow(1).rows

    encrypt(odatarow("password"),"mykey")
    next

    in theory i know how to do this but in reality, not really... any help would be appreciate thank you.
    Last edited by gmatteson; Jul 17th, 2003 at 10:29 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width