NS

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

NETWORK SECURITY

ASSIGNMENT # 01
/ BSIT 7TH A
Department: IT
Course Instructor: Muhammad Saleem Butt
Deadline 24 - Sep - 2019

Note:

1- Do it yourself because you are superb.


2- Do not compare yourself to other because you are unique.
3- This assignment by hand Written at A4 page.

Q1: By using the concept of caesar cipher

1- Please enter a string to be decoded:


Mary had a little lamb
Please enter the key value: 8
Should the encoded message be in lower case, upper case, or as is?

2- Please enter a string to be decoded: Hello! How are you?


Please enter the key value: 40
Should the encoded message be in lower case, upper case, or as is?

3- Please enter a string to be decoded: Vszzc! Vck ofs mci?


Please enter the key value: -40
Should the encoded message be in lower case, upper case, or as is?

Also write a C++ code for this cipher.

Q 2: Use playfair cipher to encrypt:

keyword = university.
Plain Text = Programming in Java is fun!

Q3: Encrypt the message “Meet me at the usual place at ten rather then eight
oclock” using HILL CIPHER with the key of 2x2 matrix. Show your calculation
and the result with encryption and decryption.
.

Department of Computer Sciences & Information Technology, Superior University, Lahore 1-1
KEY =

Also write a C++ code for this cipher.

Q 4: Consider an automated cash deposit machine in which users provide a card or


an account number to deposit cash. Give examples of confidentiality, integrity, and
availability requirements associated with the system, and, in each case, indicate the
degree of importance of the requirement.

 Good Luck 

Department of Computer Sciences & Information Technology, Superior University, Lahore 2-1

You might also like