Solved

C# - XML serialization with encryption and decryption

Posted on 2013-06-20
2
907 Views
Last Modified: 2013-06-23
I writing object into file using XML serialization.

Now I would like to be able to add encryption to write/read the XML serialization object?

What is the best and effective way to do that?
0
Comment
Question by:tommym121
2 Comments
 
LVL 42

Accepted Solution

by:
sedgwick earned 500 total points
Comment Utility
U can encrypt xml element with the sensitive data while keeping the xml file structure or encrypt the whole xml.
The 1st approach used when u need to encrypt only portion of the xml.
Both approaches can use different encryption methods provided by .net.
Here an example from msdn:
http://msdn.microsoft.com/en-us/library/ms229746.aspx
0
 

Author Closing Comment

by:tommym121
Comment Utility
Thanks
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now