how to apply encryption and Decryption xml file Read And Write in vb.net

Posted by Vishal.patil under VB.NET on 11/27/2009 | Views : 5259 | Status : [Member] | Replies : 3
i have Create XML file Using Dataset-> WriteXml Method . in this Time how to apply encryption and also apply Decryption Method to Read Xml file through Dataset eg. Dataset.ReadXmle(Path of the File) in Vb.net

E.g Dim Ds as Dataset
'Assume some Data Strore In Dataset
Ds.WriteXml(Path of The File)

'and Also Read Data from xml file To another Dataset
Dim Ds1 as Dataset
Ds1.readXml(Path)

How to apply encryption and Decryption to this Xml file for Security Perpose. Because User Can't Changes to this Xml File




Responses

Posted by: Vuyiswamb on: 11/27/2009 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
it can be done this way

http://msdn.microsoft.com/en-us/library/ms229740.aspx


http://msdn.microsoft.com/en-us/library/ms229746.aspx


http://www.devasp.net/net/articles/display/839.html


Thank you for posting at Dotnetfunda

Vuyiswa Maseko

Thank you for posting at Dotnetfunda
[Administrator]

Vishal.patil, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vishal.patil on: 11/29/2009 [Member] Starter

Up
0
Down
Hello ,

I have tried ur above link Code. but not work Properly. Given path File not encrypted.I have Check File System of My Pc .It's Also NTFS.Please Tell me another Process.

Thank You,
Vishal

Vishal.patil, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Chikul on: 11/30/2009 [Member] Bronze

Up
0
Down
Hi Vishal,

Plz check the following link .

http://www.dotnetfunda.com/codes/code484-to-wite-in-xml-file-in-encrypted-format--to-read-from-xml-file-in-dec.aspx

Wish It'll be helpfull.

Regards,
Chikul


Vishal.patil, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response