C# Tutorial Create a text Caesar Cipher encryption application
- Subject: C# Tutorials
- Learning Time: 1.5 hours
Welcome to this tutorial for creating an encryption app in C#. We will be using Microsoft Visual Studio 2010 and C# language. This is a windows form application so we can use buttons, labels and text boxes.
We are going to recreate an ancient encryption technology in our program, the technology is called Caesar Cipher its been used by the Great Julius Caesar of Rome who used to hide or encrypt his messages so when the messenger is caught in battle no one but himself can read those messages thus his victory was assured or so it was presumed then.
Here is a video done by the Khan Academy explaining the Caesar Cipher in excellent detail. Check it out – https://www.youtube.com/watch?v=sMOZf4GN3oc
Full code for the program is on page 2
- Create a simple windows form application in C# and visual studio
- Create a custom function for the encryption process
- Pass values to custom functions and events
- Use a character variable
- Use character array to help us shift the letters
- Covert data types
- Using for loops
- Returning value from a function
- Creating multiple forms
- Giving the user a help screen to understand how to use this application.
Read Next: 1 2