Purchase Solution

Creating a sample encryption code

Not what you're looking for?

Ask Custom Question

(Simple Encryption Application) This application uses a simple technique to encrypt a number. Encryption is the process of modifying data so that only those intended to receive the data can undo the changes and view the original data. The user enters the data to be encrypted via a TextBox. The application then multiplies the number by 7 and adds 5. The
application displays the encrypted number in a Label.

a. Copying the template to your working directory. Copy the directory C: Exampl esTutori al 06Exerci sesSi mpl eEncrypti on to your C: Si mpl yVB2008 directory.

b. Opening the application's template file. Double click Si mpl eEncrypti on. sl n in the SimpleEncrypti on directory to open the application.

c. Coding the Click event handler. Encrypt the number in the Cl i ck event handler for the Encrypt Button by using the preceding technique. The user input should be stored in an Integer variable (Number) before it's encrypted. The event handler should then display the encrypted number.

d. Clearing the result. Add an event handler for the Enter number to encrypt: TextBox's TextChanged event. This event handler should clear the Encrypted number: output Label whenever the user enters new input.

e. Running the application. Select Debug > Start Debugging to run your application. Enter the value 25 into the Enter number to encrypt: TextBox and click the Encrypt Button. Verify that the value 180 is displayed in the Encrypted number: output Label. Enter other values and click the Encrypt Button after each. Verify that the appropriate encrypted value is displayed each time.

f. Closing the application. Close your running application by clicking its close box.

g. Closing the IDE. Close the Visual Basic IDE by clicking its close box.

Please see the attached file for the full document sample.

Purchase this Solution

Solution Summary

The expert creates a sample encryption code. An application's template file is determined.

Purchase this Solution


Free BrainMass Quizzes
Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.

Basic UNIX commands

Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.

Javscript Basics

Quiz on basics of javascript programming language.

C++ Operators

This quiz tests a student's knowledge about C++ operators.

Word 2010: Table of Contents

Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.