Skip to content
  • Home
  • About Me
  • Contact
Code Verse

Mission to unlock the mysteries of the Code verse

Category: C#.NET

C#.NET Encryption Technology TripleDES

How to TripleDES encrypt decrypt data? – Part Two

By Sathish | April 23, 2010 by Sathish

This post has reference to part one of this Article. Inside our “TripleDESCrypt“ class, lets implement another method to read the MD5 HashKey generated from the Secret Key from the User. This method will load…

C#.NET Encryption MD5 Technology TripleDES

How to TripleDES encrypt decrypt data? – Part One

By Sathish | April 23, 2010 by Sathish

In this post, a simple demonstration of how TripleDES Encryption algorithm can be implemented using System.Security.Cryptography namespace in .NET will be explained. First of all, we need to create a XML file where we will…

C#.NET Encryption RSA Technology

How to RSA Encrypt Decrypt Data (C#) ?

By Sathish | April 19, 2010 by Sathish

This post has reference to part one of this Article. Inside our “Crypt” class, lets include two more methods. public string EncryptData(string data2Encrypt){      ParameterSetup();      StreamReader reader = new StreamReader(publicPath);      string publicOnlyKeyXML = reader.ReadToEnd();      rsa.FromXmlString(publicOnlyKeyXML);      reader.Close();…

C#.NET Encryption RSA Technology

How to Generate RSA Encryption keys (C#) ?

By Sathish | April 19, 2010 by Sathish

In this post, Simple Demonstration of RSA Encryption Algorithm will be explained. Here, we are going to make use of the System.Security.Cryptography namespace. Now, Lets create two XML files, PrivateKey.xml and PublicKey.xml. In these files…

C#.NET Technology

How to convert Image format programmatically (.NET) ?

By Sathish | March 26, 2010 by Sathish

To convert an Image from one format to another, use the following Method.Here, the known formats include, Bmp, Emf, Exif, Gif, Icon, Jpeg, Png, Tiff, Wmf etc. First, include the following Namespaces; using System.IO.Path;using System.Drawing.Imaging;…

C#.NET Technology XML

How to convert Dictionary List to XElement

By Sathish | March 12, 2010 by Sathish

XElement represents an XML element. This post will describe about how to convert Dictionary to XML Format. Assume you want the XML to be in the following format, <paramlist><param><key>1</key><value>100</value></param><param><key>2</key><value>150</value></param></paramlist> The Dictionary is having <String, String>…

C#.NET Email SMTP Technology

How to send Email using Gmail SMTP Mail Server

By Sathish | March 8, 2010 by Sathish

Assume our requirement is to send email from sender@gmail.com to receiver@gmail.com. Here we are going to use the configuration settings of Gmail SMTP mail server. Click here to get the Details of Gmail SMTP Mail…

C#.NET Technology XML

How to load XML File and convert to Dictionary

By Sathish | March 8, 2010 by Sathish

Assume you have a XML file with the following format. <paramlist><param><key>1</key><value>100</value></param><param><key>2</key><value>150</value></param></paramlist>Include the following Namespaces  using System.Collections.Generic;using System.Xml.Linq; Assume your requirement is to read data from XML file and use the data in your project for…

C#.NET MS SQL Technology XML

How to Convert Datatable to XML programmatically

By Sathish | March 5, 2010 by Sathish

Lets assume our requirement is to create a Data Table and convert it to XML format. Use the following block code for your purpose. DataSet myDS = new DataSet(); DataTable dtMyTable = new DataTable(“preview”); DataColumn…

C#.NET Crystal Report Technology

How to change Formula Field Variables in Crystal Report Programmatically

By Sathish | March 5, 2010 by Sathish

Open the crystal report you have just created in your project, and from the Field Explorer -> Formula Fields, right click and create Two new Formula Field Variables, lets name it as “parameter1” and “parameter2”…

Posts navigation

Older posts
© 2025 Code Verse | WordPress Theme Design by Superb