Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

C# - XML serialization with encryption and decryption

Posted on 2013-06-20
2
Medium Priority
?
1,217 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:
Meir Rivkin earned 2000 total points
ID: 39263638
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
ID: 39269209
Thanks
0

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
High user turnover can cause old/redundant user data to consume valuable space. UserResourceCleanup was developed to address this by automatically deleting user folders when the user account is deleted.
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

783 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