Sitemap
.Net Programming

Explore the .Net with the latest in C# from basic to advanced, including .Net versions 9, 8, 6, 5, Core 3.1, .Net Framework, ASP.NET Core, MVC, design patterns, OOPS, and SOLID principles. Get top tutorials, best practices, and hands-on code examples on GitHub.

Member-only story

C# CONCEPTS

XML Elements- Encrypt & Decrypt

How to encrypt/decrypt XML element inside a XML documents.

3 min readSep 21, 2020

--

Photo by Micah Williams on Unsplash

Prerequisites

Learn about different encryption techniques like symmetric or asymmetric encryption.

The article demonstrates how to encrypt and decrypt XML tags inside an XML document using symmetric keys.

Consider an example of an XML doc which contains a credit card information like card number, expiry date, etc. It is recommended never to store such “sensitive information” in plain text. Let’s learn how to “encrypt sensitive information and decrypt when required”.

XML Doc Example

<root>       
<creditcard>
<number>1234567890</number>
<expiry>02/02/2020</expiry>
</creditcard>
</root>

Encrypt an XML element

--

--

.Net Programming
.Net Programming

Published in .Net Programming

Explore the .Net with the latest in C# from basic to advanced, including .Net versions 9, 8, 6, 5, Core 3.1, .Net Framework, ASP.NET Core, MVC, design patterns, OOPS, and SOLID principles. Get top tutorials, best practices, and hands-on code examples on GitHub.

Sukhpinder Singh | C# .Net
Sukhpinder Singh | C# .Net

Written by Sukhpinder Singh | C# .Net

C# .Net developer 👨‍💻 who's 100% convinced my bugs are funnier than yours. 🐛💥 #BugLife Pubs: https://medium.com/c-sharp-programming

No responses yet