Perform the character shift encryption and decryption

Assignment Help Visual Basic Programming
Reference no: EM131274296

VB.NET Project 3

Classes and Objects, Methods and Properties

Referencing Project 2, instantiate an encryption class (see distributed class notes) to perform the character shift encryption and decryption.

Include clsSecurity.vb in your Project (see the Solution Explorer in the Visual Studio IDE)

Instantiate clsSecurity to create an Object named objShift

Use both the properties and methods of objShift to perform encryption/decryption in your VB project

The provided clsSecurity.vb class members include:

Methods

Encrypt()

Note: You will need to write the Decrypt () method in the clsSecurity.vb class

Properties
KeyNum
KeyString
CurrentChar
CharOutput
KeyDigit
CharASCII

From Project 2....

Develop a Visual Basic Windows Forms application that will ‘encrypt' (character shift)' the characters in a string based on a symmetric key (process known as symmetric-key cryptography). The application must also ‘decrypt' the message based on the symmetric key used.

General Requirements

The clear-text message (that will be ‘encrypted') is stored in a text-file.

The text-file is to be selected using an OpenFileDialog Windows control object

Text-file contents are to be displayed in a Textbox control located on the Windows form (you can also use this textbox to input clear-text characters)

Keys are contained in a ComboBox control object. Users can select a particular key resulting in alternate cipher-text output

Keys are to be a minimum of 5 digits. Each key digit is used for encoding where your program will move to the next digit for every character in the clear-text message.

Since there are a limited number of digits in a key, your program must ‘wrap-back' to the first digit

The selected key must be stored in an array

The resulting cipher-text output is to be stored in a text file and displayed in a textbox control on the Windows form

Using the same key for encryption, decrypt the cipher-text message and display it in a label on the Windows Form

Since only printable characters are used (see table), if the ASCII code becomes larger than 126, you will need to wrap around to the ASCII code 32 (space)

Use exception handling where needed...for example, FileNotFound or DirectoryNotFound.

Example: Using a sample key of 58912, the output would be as follows:

Clear Character

N

J

I

T


V

B

N

e

T

ASCII Code

78

74

73

84

32

86

66

78

101

84

ASCII Code + Key Value

83

82

82

85

34

91

74

87

102

86

Shifted Character

S

R

R

U

"

[

J

W

f

V

Clear-Text: "NJIT VBNet"

Cipher-Text: "SRRU"[JWfV"]

Reference no: EM131274296

Questions Cloud

Explain the pros and cons associated with countertrade : Select one theory from each category and discuss how it has affected the patterns as well as the benefits associated with cross-border trade and investment activities. Discuss the factors that would necessitate the need for nations to engage in Cou..
Develop an organizational chart of major functional areas : In Microsoft Word, develop an organizational chart of the major functional areas for a large, full service hotel. Write a paragraph explaining the organizational structure of the hotel and discuss why the major functional areas have become a best ..
Support a quality improvement initative : This week's review involves the use and development of decision support systems. If you were the HIM manager of an acute care facility, how would you approach a project in developing a new decision support system to support a quality improvement i..
On what basis would the plaintiffs claim : On what basis would the plaintiffs claim that their constitutional rights had been violated by the zoning change? Would they be correct?
Perform the character shift encryption and decryption : Referencing Project, instantiate an encryption class to perform the character shift encryption and decryption. Include clsSecurity.vb in your Project (see the Solution Explorer in the Visual Studio IDE)
Which method of data representation would be ideal for this : A cell phone manufacturing company wants to display the average sales of their new phone model for a particular month across six countries. Which method of data representation would be ideal for this?
Address the problems this hospital is facing : 1. On the basis of these issues, what OD interventions do you think should be utilized to address the problems this hospital is facing? 2. How would you proceed if you were the consultant in this case?
Order for total quality management : 1. In order for Total Quality Management (TQM) to work, what do leaders and high-level management need to do? In the TQM process, discuss the direct link between performance improvement and quality improvement.
Summarize the advantages and disadvantages of each mode : We have covered different modes of transportation in class. Think about the criteria a transportation manager might use when making strategic transportation decisions. In a PowerPoint presentation summarize the advantages and disadvantages of each..

Reviews

Write a Review

Visual Basic Programming Questions & Answers

  Gas pump - compute the total cost from the number of gallons

Write a program that will help an elementary school student learn multiplication and compute the total cost from the number of gallons entered and the selected grade.

  Write code in vba to determine the row number

Write code in VBA to determine the row number of the last row with data. Are there any precautions/edge cases to be aware of for that code

  Write a program that asks the user to respond to a question

Write a program that asks the user to respond to a question by entering either 1 for yes or 2 for no.

  Attached is a form using visual basic.

For the Location the form should calculate the # of days for the class X the lodging fees for the city. Here are a list of lodging fees for the different cities.

  Create application in vb that displays table of temperatures

Create an application in vb that displays a table of the Celsius temperatures 0 through 20 and their Fahrenheit equivalents. The application should use a loop to display the temperatures in list box.

  Designe cafe application using visual studio

Designed (Cafe) application using visual studio 2010. To Cafe application but it is about Booking Appointment for Hair Salon Business.

  Use visual interdev as an editing tool to create the app

Use Visual InterDev as an editing tool to create the application. Visual InterDev is available as part of the MSDN.

  Program in basic which prompts user to input two integers

Write down the program by using Small Basic which prompts the user to input two integers: firstNum and secondNum (firstNum must be less than secondNum).

  What makes the database product unique

1. What makes the database product unique?  2. What would be required to use the database in your own Visual Basic programming?  3. Could a Visual Basic program, once written, be modified to use a different database product?

  About vbs script

Write at least one non-trivial paragraph that explains in detail either a significant problem you had and how you solved it, or, if you had no significant problems, something you learned by doing the exercise.

  Build an application based upon array processing application

Build an application based upon the Array Processing application demonstrated in this week's Presentation. Extend this application to have a total of 10 text boxes that will accept an integer only.

  Create a visual basic windows application to display sales

Create a Visual Basic Windows application. Use the following names for the solution, project, and form file, respectively: Conway Solution, Conway Project, and Main Form.vb.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd