Goal: Encrypt and Decrypt strings
To start create a new Console project:
Spoiler (Click to View)
Next, right click on your projects folder in the solution explorer and hit add new item:
Spoiler (Click to View)
Then, select class from the list and call it whatever you want:
Spoiler (Click to View)
After that, start off by writing the functions:
Spoiler (Click to View)
Then declare the variables we will be using:
Spoiler (Click to View)
Now comes the part for encrypting the string using the password:
Spoiler (Click to View)
Now to code the inverse of the encrypt so we are able to decrypt:
Spoiler (Click to View)
Now to keep exceptions out add try statements to the encrypt and decrypt functions:
Spoiler (Click to View)
Now implement it into the main module:
Spoiler (Click to View)
Success:
Spoiler (Click to View)
Explanation:
Spoiler (Click to View)
Download my own more neat string encryption and decryption program
Virus Scan for those of you who want one:
Spoiler (Click to View)
-Kenny252
To start create a new Console project:
Spoiler (Click to View)
Next, right click on your projects folder in the solution explorer and hit add new item:
Spoiler (Click to View)
Then, select class from the list and call it whatever you want:
Spoiler (Click to View)
After that, start off by writing the functions:
Spoiler (Click to View)
Then declare the variables we will be using:
Spoiler (Click to View)
Now comes the part for encrypting the string using the password:
Spoiler (Click to View)
Now to code the inverse of the encrypt so we are able to decrypt:
Spoiler (Click to View)
Now to keep exceptions out add try statements to the encrypt and decrypt functions:
Spoiler (Click to View)
Now implement it into the main module:
Spoiler (Click to View)
Success:
Spoiler (Click to View)
Explanation:
Spoiler (Click to View)
Download my own more neat string encryption and decryption program
Virus Scan for those of you who want one:
Spoiler (Click to View)
-Kenny252

