.net

Verify the Digital Signatures of XML Documents in C#

Posted on

In this article, we will discuss on how to verify digital signatures of XML documents in C#. You can use the classes in the System.Security.Cryptography.Xml namespace to verify XML data signed with a digital signature. XML digital signatures (XMLDSIG) allow you to verify that data was not altered after it was signed The code example […]

.net

Sign XML Documents with Digital Signatures in C#

Posted on

In this article, we will discuss how to sign a XML document with digital signature. You can use the classes in the System.Security.Cryptography.Xml namespace to sign an XML document or part of an XML document with a digital signature. XML digital signatures (XMLDSIG) allows you to verify that data was not altered after it was […]

.net

Decrypt XML document using Asymmetric key in C#

Posted on

In the previous article we have discussed, how to encrypt XML element using Symmetric key. This is a continuation to previous article. http://www.techkatak.com/encrypt-xml-elements-with-asymmetric-keys-in-csharp/ Add a reference to System.Security.dll to project Include System.Security.Cryptography and System.Security.Cryptography.Xmlnamespace to your project XML decryption  allows you to read sensitive XML, without worrying about the data being easily read. This procedure decrypts an XML […]

.net

Encrypt XML Elements with Asymmetric Keys in C#

Posted on

In this article, we will discuss how to encrypt XML document using Asymmetric key. Add a reference to System.Security.dll to project Include System.Security.Cryptography and System.Security.Cryptography.Xml namespace to your project XML Encryption allows you to store or transport sensitive XML, without worrying about the data being easily read. This example encrypts an XML element using two keys. […]

.net

Decrypt XML using Symmetric key in C#

Posted on

In the previous article we have discussed, how to encrypt XML element using Symmetric key. This is a continuation to previous article. http://www.techkatak.com/encryption-using-symmetric-key-in-csharp/ Add a reference to System.Security.dll to project Include System.Security.Cryptography and System.Security.Cryptography.Xmlnamespace to your project XML decryption  allows you to read sensitive XML, without worrying about the data being easily read. This procedure decrypts an XML […]

.net

Encryption using Symmetric key in C#

Posted on

In this article, we will discuss how to encrypt XML document usning Symmetric key. We will use Advanced Encryption Standard(AES) known as Rijndael algorithm for encryption. Add a reference to System.Security.dll to project Include System.Security.Cryptography and System.Security.Cryptography.Xml namespace to your project XML Encryption allows you to store or transport sensitive XML, without worrying about the data […]

.net

Symmetric keys in C#

Posted on

To understand the Cryptographic model in C#, please go through Cryptographic service article to understand Symmetric and Asymmetric encryption. http://www.techkatak.com/cryptographic-services-overview-in-csharp/ In this article, we will learn: Generate Symmetric keys Generate Initialization vector Generate Symmetric Keys: The symmetric encryption classes supplied by the .NET Framework require a key and a new initialization vector (IV) to encrypt and decrypt […]