Encryption Algorithm

By admin  

encryption algorithm

Creating an Encryption Utility in C# Final Part

In part three of this three part series we are going to continue with our Encryption utility example and pick up where we left off. What we learned in the previous articles was how many various types of encryption algorithms there are and which one of those algorithms we will be using for our example.
We were able to create a new Windows application and begin adding our libraries and our IEncrypt interface. We will now continue with the GUI section of our example and create the remaining pieces of our application.
We will start to create a GUI front end that will allow you to type values into a text field and then encrypt and encode that value. This utility will also allow you to take values that are encrypted and encoded, then decode and Decrypt them back to their original value. In the end we will have a fully functional utility that allows encryption and Decryption and a working class that we can consume into any application web or windows.
This allows us to add another level of security to that web or Windows application. At that point the GUI front end could become your administration screen and allow you to have one central location to decrypt and encrypt values within all of your configuration files.

Continuing with our example

The next step in our example is to build the form that holds all of our buttons and textboxes used to encrypt and decrypt values. This form will consist of the following controls:

  • Textbox called txtEncrypt
  • Textbox called txtDecrypt [Read-Only]
  • Listbox called lstbxList
  • Button Called cmdEncrypt
  • Button Called cmdEncode
  • Button Called cmdDecode
  • Button Called cmdDecrypt
  • Button Called cmdReset

We will now explain what each one of these controls will do in our example and we will also bring you through the steps within the application so you can encrypt a value and then turn around and decrypt that value back to its original value.
The first control in our example is called the txtEncrypt control and it is a textbox. This is where we will type in our original plain text value that we want to be encrypted. There is no event for this control and no code behind. It is an editable field and is a required field for this example.
In this example we will be using the phrase “This is a Test” as our original string. Fig. 1

Please continue at Programminghelp.com Thanks and happy coding!

About the Author

Programming Help is a community collaboration for programming resources, tutorials, articles, forums, and help. Offering articles written by programmers and developers with years of experience. ProgrammingHelp.com strives to develop and create context and articles in which the beginning and most advanced level programmers/coders can use in everyday methods of development. We welcome you to come join us with your questions and knowledge to help us create an excelled programming community and open forum.

Sarah Flannery Cayley-Purser Cryptographic Algorithm



Post a Comment

Your email is never shared. Required fields are marked *

*
*