Part 1: Static Encryption Hello everyone. While I find encryption to be sort of halfway-exciting, Some of you may not. If you don’t like learning, coding, and are bored to tears by encryption, stop reading now. If you are reading this, continue on. ~~
What is cryptography?
Cryptography (or cryptology; from Greek κρυπτός, kryptos, “hidden, secret”; and γράφω, gráphō, “I write”, or -λογία, -logia, respectively) is the practice and study of hiding information. Modern cryptography intersects the disciplines of mathematics, computer science, and engineering. Applications of cryptography include ATM cards, computer passwords, and electronic commerce. (c) Wikipedia
- Microsoft Visual Basic .NET
1. Open Visual Studio and click ‘Create new project’, then choose “Windows Forms Application”
2. You’ll need a textbox(multiline) for the input of code to be encrypted or decrypted.
3. Now add two buttons then name “Encrypt”, and “Decrypt”
4. Now, here’s the code for it. (You can create your own random method). For the encrypt button, this is for the function code.
There’s already an explanation for every code.
5. The main point here if you didn’t notice, capital vowels don’t get encrypted. But there are solution for this.
5.1 Manually go through and add the uppercase letter in the replace lists; or
5.2 Use the ToLower command to change all the text into lowercase before encrypting it.
6. Then let’s proceed on the decrypting function.
7. Paste the code on the buttons function. As you can see, the decrypt code is just the reverse of encrypting process.
8. Debug, Build and Publish. You can create your own way of encrypting codes.
Had some revision from the original poster of that tutorial so credit goes to him.
You can download here the solution of this project: